Force Ajax Validation on form submit?


I am currently working on a registration form with client validation and Ajax validation.

The Problem is, I have some custom validators that only work via Ajax, so if the user enters a username that is valid but not available and clicks submit, the error disappears.

Is there a way to force Ajax Validation on form submit, regardless of existing errors that can be validated on the client side?

Any other ideas?


use validateOnSubmit -

this should help