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

svendecabooter’s picture

You 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.

robloach’s picture

Assigned: Unassigned » robloach

I've got ya :-) . Hopefully by next week. Don't need any complex fields, but maybe just the basics.

svendecabooter’s picture

Awesome :) I trust your JS skills a lot more than my own ;)
You'd like CVS access if that's easier?

tkrn’s picture

How is the status of this? :-D Thank you Rob! ::praises Rob with luxurious gifts::

svendecabooter’s picture

Status: Active » Postponed

Marking this one as postponed until further notice.

robloach’s picture

mrfelton’s picture

What is the state of this? Is it the plan to integrate http://bassistance.de/jquery-plugins/jquery-plugin-validation/ somehow? Any progress?

robloach’s picture

Sorry, 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.

attiks’s picture

I 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.

attiks’s picture

Component: Validation rules » Code
Status: Postponed » Needs review

I 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.

svendecabooter’s picture

Assigned: robloach » Unassigned
Status: Needs review » Fixed

Feedback 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...

svendecabooter’s picture

Status: Fixed » Closed (won't fix)

More accurate status :)