Hsl.Control
Represents a control on the form. Use form.control to get an instance of this class.
xrmControl
control.xrmControl: Xrm.Controls.Control;
Returns the wrapped Xrm Control
getVisible
control.getVisible(): boolean;
Returns whether the control is currently visible.
setVisible
control.setVisible(visible: boolean): void;
Sets the control's visibility.
ℹ️ This method is not simply a wrapper of the out of the box set visible method. It will ONLY set visibility at the control level. The Xrm API's setVisible method will show the containing section if it is hidden. With this method, if the section that the control is in is hidden, the section will remain hidden.