Conditional Required Fields

On my SAIL expression, a user is required to select "True" or "False" to a question. If "True" is selected, a required conditional field appears. If the user tried to submit the form without selecting an answer to the initial question, the form shows the validation on the component. If the user selects "True", the conditional field appears with the validation already firing. Is there a way to avoid this? 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    From my understanding, once you attempt to submit a form and validations are triggered, your form is basically in a "validate" state. Which means that all fields for which validations are true will display, including cascading fields that could become visible after initial selection. So long story short, I don't think there is a way to avoid that. I don't think Aditya's method will work either, but it's worth a try.
Reply
  • 0
    Certified Lead Developer
    From my understanding, once you attempt to submit a form and validations are triggered, your form is basically in a "validate" state. Which means that all fields for which validations are true will display, including cascading fields that could become visible after initial selection. So long story short, I don't think there is a way to avoid that. I don't think Aditya's method will work either, but it's worth a try.
Children