Hello, I have a form where the user needs to choose if they are attending an event by choosing either yes or no from a set of two radio buttons. When I generated the form, I chose to make that required, but it seems to not be working as people are submitting the form without choosing yes or no. Any ideas on how to correct this? Thanks in advance for any help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-03-16
Try this but change the field_14 to the name of your radio button area and change fieldBox_14 to the id of your radio button li class. I hope that makes sense. The 2 means that there are 2 radio buttons.
if (validateRadio('field_14','fieldBox_14','radio',2,1) == false)
retVal=false;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello, I have a form where the user needs to choose if they are attending an event by choosing either yes or no from a set of two radio buttons. When I generated the form, I chose to make that required, but it seems to not be working as people are submitting the form without choosing yes or no. Any ideas on how to correct this? Thanks in advance for any help!
Any ideas on this question guys?
Try this but change the field_14 to the name of your radio button area and change fieldBox_14 to the id of your radio button li class. I hope that makes sense. The 2 means that there are 2 radio buttons.
if (validateRadio('field_14','fieldBox_14','radio',2,1) == false)
retVal=false;