Skip to main content

beforeValidate

fires before the control value is validated

beforeValidate: (value: object[]) => boolean | void;

Parameters:

  • value: array - the value to be validated

Returns:

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

Example

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

Change log:

added in v7.0