Expand my Community achievements bar.

Managing required state of Radio buttons using events

Avatar

Former Community Member
I have a form that displays subforms depending on a user's selection from a dropdown list. These subforms have fields that need to be required if the user selects the Subform. I have been able to set the required fields in each Subform initialize event (example, Subform1.jobTitle.validate.nullTest = "error";). If the user makes another selection from the dropdown list, I turn off the required fields in the Subform exit event (example, Subform1.jobTitle.mandatory = "disabled";). This works great for everything but radio buttons. How can I reference a radio button in the exit event so that I can make it optional if the user leaves the Subform?
0 Replies