beforeValidate

fires before validation of form fields has started

boolean beforeValidate(string name|id,any value){ ... };

Parameters

name|idstringthe name (or id, if the name is not specified) of the Form control
valueanythe value to be validated

Returns

booleanfalse - to prevent validation, otherwise true

Example

form.events.on("BeforeValidate", function(name, value) {
    console.log("BeforeValidate", name, value); 
    return true;
});

See also
Change log

added in v7.0

Back to top