I have a form which has 3 checkboxes that if checked then the corresponding text boxes becomes visible. I also need each text box to be Required if it is visible; it should remain optional if the field remains hidden. Is there a code for this?
Solved! Go to Solution.
Views
Replies
Total Likes
You can set the mandatory property via script.
//Make field mandatory textfield.mandatory = "error"; // Make field optional textfield.mandatory = "disabled";
You can set the mandatory property via script.
//Make field mandatory textfield.mandatory = "error"; // Make field optional textfield.mandatory = "disabled";
Worked perfectly!
Thanks so much!