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?
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.???
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.
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
This is still the case in v7 (not sure about v8) so will see if there is an issue on Github relating to it.
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.???
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.
is working on a reply...