Event.Form.Inputs(FID).Visible
.Visible allows the user to get and set the visible property for the form element selected.
Note:
-
Scripting can only set the visible property if the form element's visible property is true on the form open or record load event. If the element's visible property was false at that time, then scripting cannot change this property.
Applies To
- Event.Form.MainGrid
- Event.Form.Parent.MainGrid
- Event.Form.Parent.Controls(FID)
- Event.Form.Parent.Grids(FID)
- Event.Form.Parent.Inputs(FID)
- Event.Form.Controls(FID)
- Event.Form.Grids(FID)
- Event.Form.Inputs(FID)
Properties and Methods
None
Available
The .Visible property is available in:
- 15.03.016
- All newer builds
Note: The .Visible property and all sub-classes, properties, and methods are only available in Form Layout scripts.
Type
Boolean
Syntax
Event.Form.Inputs(FID).Visible;
Parameters
None
Example
//--Add this script to the contadd record load event to view
var lpComp = Event.Form.Inputs('Input_eCONT_co_company');
Event.Form.MessageBox(lpComp.Caption + ' visible property is: ' + lpComp.Visible);
/*Expected Prompt response:
Company visible property is: true
*/