fires when validation of a form fails
Instead of it, you can use the afterValidate and beforeValidate events.
id | string | the id of a control |
component | object | the object of a control |
form.events.on("ValidationFail", function(id,component){
// your code here
});