beforeValidate

fires before the control value is validated

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

Parameters

valueDate|stringthe value to be validated

Returns

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

Example

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

See also
Change log

added in v7.0

Back to top