Forums
This topic is locked
Radiobuttons and Yaromat Check Form Extension
17 Dec 2002 13:07:22 A. B. posted:
First, I LOVE the Yaromat Check Form (version 4.65) extension! It has everything that I need! The problem I have though is with multiple radiobuttons.I'm using UD4, and I have 20 radiobuttons on a form. The problem occurs if no radiobuttons are selected - the error message lists each radiobutton as an error, so I have twenty error messages. How can I tell the checkform behavior to only give one radiobutton error message if no radiobuttons are selected?
Hope this makes sense. I'd appreciate any help with this problem. Thanks in advance!
Andrea
Edited by - Livvy38 on 17 Dec 2002 13:08:45
Replies
Replied 17 Dec 2002 14:45:57
17 Dec 2002 14:45:57 Lee Diggins replied:
Hi Livvy,
firstly you need to define the groups of radio buttons, 20 seems a few too many for one group.
To make radio buttons function correctly you need to give them all the same name, so the first group, say you have five radio buttons in the group, each could be called radGroup1 or something. The next group of five could be called radGroup2 and so on.
When you use the Yaromat extension, you will see the groups of radio buttons in the list and they'll all have the same name (per group) except for an index number (0,1,2,3 and 4 in a group of five). As these are now groups, you only have to apply the validation on one of the radio buttions in the group, go for the first - 0.
And remember you only have to validate the group if your page loads without any radio buttons in the group being checked.
I hope I have explained this, if not get back to me and I'll expand further.
Digga
Sharing Knowledge Save Valuable Time!!!
firstly you need to define the groups of radio buttons, 20 seems a few too many for one group.
To make radio buttons function correctly you need to give them all the same name, so the first group, say you have five radio buttons in the group, each could be called radGroup1 or something. The next group of five could be called radGroup2 and so on.
When you use the Yaromat extension, you will see the groups of radio buttons in the list and they'll all have the same name (per group) except for an index number (0,1,2,3 and 4 in a group of five). As these are now groups, you only have to apply the validation on one of the radio buttions in the group, go for the first - 0.
And remember you only have to validate the group if your page loads without any radio buttons in the group being checked.
I hope I have explained this, if not get back to me and I'll expand further.
Digga
Sharing Knowledge Save Valuable Time!!!