Event.Form.Inputs(FID).Caption
.Caption returns the DEACOM caption text of the form element selected.
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 .Caption property is available in:
- 15.03.016
- All newer builds
Note: The .Caption property and all sub-classes, properties, and methods are only available in Form Layout scripts.
Type
String
Syntax
Event.Form.Inputs(FID).Caption;
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 + "'");
/*Expected Prompt response:
'Company'
*/