dilvie/h5Validate — pull request #40 by joelpurra (2012-06-02 22:06:32+00:00)
Title: Trigger the custom formValidate event before validating a form

The `formValidate` even is useful to prepare the form for validation. It complements the `formValidated` event.

I use the formValidate event to unhide certain fields before validation at submission time. The `allValid` call is buried in `.submit(function() ...)` handlers, and I'd like validation and presentation to remain loosely coupled. The fields remain visible if the validation is ok (for the actual form submit via POST) and I hide them again in formValidated if there were validation errors.

*Clarification:* I'm not talking about `type="hidden"` fields. This is a rather long form, adapted from a paper version, that has been split into section with javascript and css. The backend is a legacy system, and it can only handle a single POST with all the fields at the same time.