Welcome Guest, Not a member yet? Register   Sign In
Strategy help for advanced form validation
#1

[eluser]stormbytes[/eluser]
I may have gone out on a limb with 'advanced' in the thread title, but who cares Smile

I'm working on a form where, in addition to a series of static (predefined) fields there's a group of fields that can be appended using a Javascript-driven 'add another?' button. I'm wondering how to go about validation in this case. I read the bible, err.. user guide and it's pretty murky on the subject, save for one part that briefly discusses the use of arrays as field names. I'm guessing this might be handy but frankly I'm kind of clueless.

Some general direction, ideas, insights, and/or suggestions would be grand!
#2

[eluser]tkyy[/eluser]
use conditionals based on which elements are present inside of the submit function to place your validation rules. instead of using one large array and passing it to the form validation object you can create the rules one at a time.




Theme © iAndrew 2016 - Forum software by © MyBB