|
| |
validation: require at least one check box to be, well, checked
View related threads:
(in this forum
| in all forums)
|
Logged in as: Guest
|
|
|
Guest
|
validation: require at least one check box to be, well,... - 11/8/2001 20:54:00
Hi. I have a simple FP e-mail form for seminar registrations. You check a box on the event(s) you wish to register for, and get a validation form id'ing those you choose. I receive an email with the dates chosen. There are about 8 events. A few folks are sending the form without checking any box at all - To fix, I get FP validation options for text boxes but not check boxes....any ideas appreciated. The form is at http://www.mitforumct.org/calendar.htm
|
|
|
|
maduko
Posts: 168 From: Tulsa OK USA Status: offline
|
RE: validation: require at least one check box to be, w... - 11/8/2001 23:26:00
I've run into that problem also. There is probably a Javascript solution but you would most likely need to disable the FP form validation.One workaround is to use radio buttons instead of a checkbox. You can use the FP validation on a radio button. Since you offer multiple selections you would need a radio button "group" for each event. A bit lame- if I select an event by accident or change my mind there isn't any way to uncheck that radio button.
|
|
|
|
puiwaihin
Posts: 1378 From: Taiwan Status: offline
|
RE: validation: require at least one check box to be, w... - 11/8/2001 15:19:00
Another purely HTML solution is to use a multiple entry select box and disallow the first option. But, I personally hate those things.Another thing to do is put a onMouseDown event handler on the submit button and run a validation script. In the script make use of something like: var valid=false; if(check1.checked==true) { valid=true; } //make a condition for each box //or make some sort of loop to check each box if(valid==true) { document.formName.submit(); } else { alert("Check at least one of the options"); }
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|