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