Copied to clipboard

Flag this post as spam?

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


  • Christina Carter 12 posts 93 karma points
    Mar 28, 2016 @ 15:13
    Christina Carter
    0

    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?

    enter image description here

  • Dennis Adolfi 1072 posts 6378 karma points MVP 2x c-trib
    Mar 29, 2016 @ 06:19
    Dennis Adolfi
    0

    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.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies