It would be great if the Webform Validation module could also do some JavaScript validation so it doesn't have to hit the server.
It would be great if the Webform Validation module could also do some JavaScript validation so it doesn't have to hit the server.
Comments
Comment #1
svendecabooterYou mean like replicate the validation rules in JS, and if JS is disabled fall back to server side validation?
That's an interesting idea, but I guess it would require quite some work, and my JS skills are not that sophisticated.
I think special cases like multistep forms might also make the logic more complex.
I'll see if I have time to look into it, but there's no immediate incentive right now.
Comment #2
robloachI've got ya :-) . Hopefully by next week. Don't need any complex fields, but maybe just the basics.
Comment #3
svendecabooterAwesome :) I trust your JS skills a lot more than my own ;)
You'd like CVS access if that's easier?
Comment #4
tkrn commentedHow is the status of this? :-D Thank you Rob! ::praises Rob with luxurious gifts::
Comment #5
svendecabooterMarking this one as postponed until further notice.
Comment #6
robloachFor referenced pimpage: http://bassistance.de/jquery-plugins/jquery-plugin-validation/
Comment #7
mrfelton commentedWhat is the state of this? Is it the plan to integrate http://bassistance.de/jquery-plugins/jquery-plugin-validation/ somehow? Any progress?
Comment #8
robloachSorry, other things came up. There are plans, just not sure when they'll come. If anyone wants to get it started, I'd be willing to help out.
Comment #9
attiks commentedI needed this as well, but not only for webforms but also for regular forms, I started a new project: clientside_validation. For the moment it supports all standard webform components and some regular FAPI elements.
Comment #10
attiks commentedI just added support for the following rules to my module (clientside_validation):
- Numeric values
- Minimum length
- Maximum length
- Equal values
- Unique values
- Specific value(s)
- Minimum number of selections required
- Maximum number of selections allowed
- Exact number of selections required
I did some basic testing, but all feedback appreciated.
Comment #11
svendecabooterFeedback on this could probably be put in its proper issue queue.
I have added a mention of your module on the webform_validation project page earlier, so people looking for that would be directed that way...
Comment #12
svendecabooterMore accurate status :)