beforeValidate

fires before the control value is validated

boolean beforeValidate(string value){ ... };

Parameters

valuestringthe value to be validated

Returns

booleanfalse - to cancel the default action of the event, otherwise true

Example

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

Change log

added in v7.0

Back to top