Skip to main content

beforeValidate

fires before the control value is validated

beforeValidate: (value: string | number) => boolean | void;

Parameters:

value: string | number - the value to be validated

Returns:

Return false to cancel the default action of the event; otherwise, true.

Example

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

Change log:

added in v7.0