Checkbox/Checkboxlist Question

lorena

Centurion
Joined
Oct 23, 2003
Messages
134
Location
Phoenix, Arizona
I have a form with a checkboxlist that has several choices. Because the person who requested this form also wants a choice "Other" with an associated textbox to explain the choice, I added "Other" as a checkbox.
I need to validate on submit, that either one item from the checkboxlist or the checkbox has been chosed.
Is there an easy way to do this? Or, let me rephrase, is there any way to do this?
 
You can do this using JavaScript; on the submit button create a validation script (using JS), something like the OnClick event.
btw, you should also validate on the server-side code as well.

If you need help with the JS code let me/us know.
 
I was going to try incrementing an integer value for each checkbox that is checked and writing it to a textbox which would be validated on submit but I can't get the textbox to automatically update.
Would this be a workable solution?
 
Back
Top