Why does it only allow the top radiobutton to be chosen.
If any other is chosen it says like in the attachment.[attachment=0]Afbeelding 53.png[/attachment]
Here the code
and attached the validation rules. 1 - required (not blank) the "man" is not included. When it is it changes nothing[attachment=1]Afbeelding 54.png[/attachment]
If any other is chosen it says like in the attachment.[attachment=0]Afbeelding 53.png[/attachment]
Here the code
<td class="style1"> <label>
<input type="radio" name="man" id="man" value="man" />
Man
*</label> <label>
<input type="radio" name="man" id="vrouw" value="vrouw" />
Vrouw
*</label></td>
and attached the validation rules. 1 - required (not blank) the "man" is not included. When it is it changes nothing[attachment=1]Afbeelding 54.png[/attachment]
i think this is related to the reply i just made ?
Max
Max
Hi c10,
I posted a modified version of this validation last week.
[forumsb]req1[/forumsb]
Bob
I posted a modified version of this validation last week.
[forumsb]req1[/forumsb]
Bob
Thanx I will look into that!
Just thought that the radiobutton idea normally already makes it so that you can only pick 1 off all
just the making the picking 1 required seems to need much more code..
I am going to try!
Just thought that the radiobutton idea normally already makes it so that you can only pick 1 off all
just the making the picking 1 required seems to need much more code..
I am going to try!
Hi c10,
It depends how you want to set the form up. If you preset one of the radio buttons as checked, then the validation is unecessary. Though you have no way of telling if they just left the preset value. If you don't reset a value and you want to make one required then you need some validation.
IIRC the plain 'required' validator doesn't work on check boxes and radio buttons as they always have a value.
Bob
It depends how you want to set the form up. If you preset one of the radio buttons as checked, then the validation is unecessary. Though you have no way of telling if they just left the preset value. If you don't reset a value and you want to make one required then you need some validation.
IIRC the plain 'required' validator doesn't work on check boxes and radio buttons as they always have a value.
Bob
This topic is locked and no more replies can be posted.