Event.Form.Inputs(FID).Display
.Display property returns the DEACOM display text for combo box and search box input elements. The .Value property returns the ID of the combo or search box selection. .Display will return the text that is seen by the user on the screen.
Note: The .Display property is read-only. The .Value property can read and write, but the .Display can only read.
Applies To
Properties and Methods
None
Available
The .Display property is available in:
- 16.02.011
- 16.03.006
- 16.04.003
- All newer builds
Note: The .Display property and all sub-classes, properties, and methods are only available in Form Layout scripts.
Type
String
Syntax
Event.Form.Inputs(FID).Display;
Parameters
None
Example
//--Add this script to the contadd form layout
var lpComp = Event.Form.Inputs('Input_eCONT_co_biid');
Event.Form.MessageBox('Display Vs Value for ' + lpComp.Caption +
'\nValue (Search Box ID): ' + lpComp.Value +
'\nDisplay: ' + lpComp.Display);
/*Expected Prompt response:
Display Vs Value for Bill-To Company
Value (Search Box ID): 1961
Display: ABC Supply
*/