I have a form field with Yes and No radio buttons. If the user chooses Yes, another form field, previously hidden, shows up with other radio buttons. I wish to make those conditional fields as required. However, it should only become required when the user chooses the Yes button. it cannot be a required field if the user chose No. How is that possible? I understand how that could be done with a dropdown box. Radio buttons seems to have a bit different syntax.
Use the Form_CustomValidate client script to perform your custom validation.
Thanks. I am asking for some further asistance. In this example, I have a form field named Vacation. It asks, "Are you planning to proceed on vacation? The user can choose either Yes or No displayed as Radio Buttons.
If the user chooses “Yes”, a hidden field is displayed, with the question, "Where are you spending your vacation? The choices are Canada or the USA, displayed as radio button choices.
I want the second question to be required but only when the user choose yes to the first question. If the choice is No, then the second question is not required.
I already know how to hide and show the second question based on the Yes or No choices. All i need help with is making it required if the user chooses Yes to the first question. Any code assistance would be appreciated. Thanks.