validationFail

fires when validation of a form fails

void validationFail(string id,object component){ ... };

Deprecated

Instead of it, you can use the afterValidate and beforeValidate events.

Parameters

idstringthe id of a control
componentobjectthe object of a control

Example

form.events.on("ValidationFail", function(id,component){
    // your code here
});

Related samples

Back to top