beforeHide
fires before a Form control is hidden
beforeHide: (name: string | number, value?: any) => boolean | void;
Parameters:
name|id: string | number
- the name (or id, if the name is not specified) of the Form controlvalue: any
- the current value of the control
Returns:
Return false
to prevent a control from being hidden; otherwise, true
.
Example
form.events.on("beforeHide", function(name, value) {
console.log("beforeHide", name, value);
return false;
});
Related sample: Form. Events
Change log:
- added in v6.5
- Before v7.0, the event took one parameter - the control id.
- Starting from v7.0, the event takes two parameters: name|id and value.