beforeHide

fires before a control is hidden

boolean beforeHide(string value,boolean init){ ... };

Parameters

valuestringthe current value of the control
initbooleantrue, if the event is triggered on the control initialization, otherwise false

Returns

booleanfalse - to prevent a control from being hidden, otherwise - true

Example

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

Change log

added in v7.0

Back to top