Skip to main content

beforeValidate

fires before the control value is validated

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

Parameters:

value: string | boolean - the value to be validated

Returns:

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

Example

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

Change log:

added in v7.0