Validating form fields if a particular value in a radio button is selected
Is there a way to be able to validate certain form fields only if a particular radio button is selected. For instance if I have a radio button that has option 1 and option 2. If option 1 is selected then Form Toolkit will validate textbox 1, but if the radio button option 2 is selected then validation toolkit will validate textbox 2 but not textbox 1 etc.
Would this be possible? and what would be the best way to do it?
Many thanks as always for your help