dynamically make a property mandatory if another property is marked as "true"
On an Article document type, I have a property called "Promoted" that is a true/false field, and two date pickers properties called "Promotion Start Date" and "Promotion End Date". If the content editor marks the Promoted field as True, then I would like Start Date and End Date fields to be mandatory. Is this possible?
Either, create your own custom property that takes consideration of you Promoted bool or leave it the way it is now, leave a description on Promotion Start and Promotion End that these field are mandatory if the article is Promoted, and then double check in your view that these fields are actually filled.
dynamically make a property mandatory if another property is marked as "true"
On an Article document type, I have a property called "Promoted" that is a true/false field, and two date pickers properties called "Promotion Start Date" and "Promotion End Date". If the content editor marks the Promoted field as True, then I would like Start Date and End Date fields to be mandatory. Is this possible?
No, its not possible to have conditional logic for mandatory fields for DocumentTypes in the Umbraco backend, see this related post: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/61326-Mandatory-conditional-fields-in-Umbraco-backend-
Either, create your own custom property that takes consideration of you Promoted bool or leave it the way it is now, leave a description on Promotion Start and Promotion End that these field are mandatory if the article is Promoted, and then double check in your view that these fields are actually filled.
is working on a reply...