Question
Radio Buttons
In my cfform, I have two radio button (yes and no) and an
entry field. The no is prechecked so that it is the default. If the
user decides to check yes, then I need to make the entry field a
required entry, otherwise it remains blank. How do I edit/validate
that ? Here is what I have so far :
<cfinput type="radio" name='button_1" value="Yes">Yes
<cfinput type="radio" name="button-2" value="No" checked> No
<br>
<cfinput type='text" name="field_1" value=" ">
<cfinput type="radio" name='button_1" value="Yes">Yes
<cfinput type="radio" name="button-2" value="No" checked> No
<br>
<cfinput type='text" name="field_1" value=" ">