Can cfinput validation be limited ?
I have a form where input is determined by radio buttons. If the first one is selected, a certain group of input fields popup for entry. If the second button is selected, another group popsup for entry, etc...
The first group has a field that I want to make required, so I have
<cfinput type="text" name="comments_#id#" required="yes" message="Please enter">
This works. But when I click the second button to get the other group, the comments required message still popsup.
Is there a way to disregard the requirement if I am working with the second group of fields ?
