Form Check box validation
Posted: Fri Mar 02, 2007 9:43 pm
I need ideas on how to validate a form...
A registration form has 9 weeks of camp a user can sign up for and each week has 6 registration options.
Looks like this:
Week of July 1-5
[ ] - Full day Monday - Friday
[ ] - Full day Monday - Wednesday - Friday
[ ] - Full day Tuesday & Thursday
[ ] - Half day Monday - Friday
[ ] - Half day Monday - Wednesday - Friday
[ ] - Half day Tuesday & Thursday
Since there are nine weeks and six options each that is 54 check boxes. Each box is named "option_X" (option_1 - option_54)
The validation needs to:
* require min. of one selection (they need to select at least one week to attend)
* not allow multiple selections from the same week (in the example option_1 - option_6)
* I would like to run validation for each "week" (group of "options_X") for error processing reasons...
I considered using radio buttons, one set per week, but then a user can't un-select a week once they have selected an option.
Any Suggestions?
A registration form has 9 weeks of camp a user can sign up for and each week has 6 registration options.
Looks like this:
Week of July 1-5
[ ] - Full day Monday - Friday
[ ] - Full day Monday - Wednesday - Friday
[ ] - Full day Tuesday & Thursday
[ ] - Half day Monday - Friday
[ ] - Half day Monday - Wednesday - Friday
[ ] - Half day Tuesday & Thursday
Since there are nine weeks and six options each that is 54 check boxes. Each box is named "option_X" (option_1 - option_54)
The validation needs to:
* require min. of one selection (they need to select at least one week to attend)
* not allow multiple selections from the same week (in the example option_1 - option_6)
* I would like to run validation for each "week" (group of "options_X") for error processing reasons...
I considered using radio buttons, one set per week, but then a user can't un-select a week once they have selected an option.
Any Suggestions?