Welcome Guest, Not a member yet? Register   Sign In
Extending Form Validation
#1

[eluser]Whit Nelson[/eluser]
Hello all,

I have a question about form validation: I have several checkboxes, and I want to make sure that at least one is checked. However, each checkbox seems to run through the form validator independently, and so checking that at least one is checked would seem to require a global variable of some sort, which doesn't feel terribly clean to me.

Is there a clean way to run this check on several form elements at once? Can I set a rule which is independent of the form elements themselves, and an error corresponding to it?

Thanks in advance,

Whit


Messages In This Thread
Extending Form Validation - by El Forum - 09-20-2009, 12:49 PM
Extending Form Validation - by El Forum - 09-21-2009, 04:17 PM
Extending Form Validation - by El Forum - 09-21-2009, 05:24 PM
Extending Form Validation - by El Forum - 10-14-2009, 10:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB