Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Srdjan 19 posts 53 karma points
    Apr 04, 2017 @ 14:45
    Srdjan
    2

    Nested Content inside GridLayout - mandatory fields validation

    Hello,

    the fields of nested content are not validated if nested content is included in grid layout if added as one of allowed controls.

    We created SlideItem document type with Image, Title(mandatory) and Summary text. 'Slider' nested data type is build of 4 slides each of SlideItem document type. After that we created GridSlider document type which contains SlideItems property of Slider data type and SliderTitle textstring property.

    When new GridSlider is added to page body text of GridLayout data type we are able to save node even though mandatory fields are not populated, in this case Title of SlideItem.

    The thing is we supported adding different types of nested content to GridLayout and non of them have been validate. How could we manage to validate those items of GridLayout?

    Thanks,

    Srdjan

  • Simon Dingley 1474 posts 3431 karma points c-trib
    Jun 20, 2019 @ 08:14
    Simon Dingley
    0

    This is still the case in v7 (not sure about v8) so will see if there is an issue on Github relating to it.

  • Arun 141 posts 394 karma points
    Apr 08, 2020 @ 13:06
    Arun
    0

    I too have the same issue,
    I'm using a nested content inside a grid component and I have set mandatory fields inside that nested content but while inserting content it's possible to add empty fields
    Anybody got the solution.???

  • Trevor Husseini 20 posts 151 karma points
    Oct 06, 2020 @ 21:39
    Trevor Husseini
    0

    This is most definitely the case in Umbraco v7.7.7: fields are mandatory on a doc type, but that is not being enforced on save/publication if the doc type is used as nested content. I would expect some sort of error message on publication but unfortunately, the error doesn't bubble up and the only change in the UI is that the "Save & publish" button's text changes to an empty string.

    I'm pretty sure this was considered a bug vs. a feature as I do not see the same behavior in Umbraco v8.6.2.

Please Sign in or register to post replies

Write your reply to:

Draft