posabsolute/jQuery-Validation-Engine — Issue #300: Ability to check if form is valid without displaying prompts
Author: cowwoc
Created: 2012-03-10 02:56:39+00:00
State: open

I'd like to be able to check if the form is valid without actually causing prompts to be displayed.

Use-case: Trigger some action when all required fields are filled, but don't trigger a warning about required fields until the user reaches them.

1. A form contains three required fields.
2. I register a callback that runs any time a field is changed.
3. The user fills out the first field, hits TAB. The plugin verifies the first field and warns if it contains any errors (good!)
4. When the first field is modified, my callback attempts to validate the form and fire an action if all fields are full. They are not (yet) so I do nothing. The problem is that right now the user is getting a warning to fill field 2 and 3 even though he hasn't reached them yet. Ideally my callback should be able to check whether the form is valid without triggering additional prompts.