Event.Form.Inputs(FID).Value
.Value property returns the DEACOM value in input elements. The value is returned in the data type of the input element.
-
Text boxes --> trimmed String. Empty text boxes return an empty string.
-
Notes Boxes --> trimmed String. Empty notes boxes return an empty string.
-
Number Boxes --> Numbers. Empty number boxes return 0.
-
Date Boxes --> Trimmed String equivalent to DateTime.Today.ShortDateString. Empty Dates are returned as null.
-
Check Boxes --> Booleans. Checked = true, unchecked = false.
-
Search Boxes --> Integers. To get the text from a search box use the .Display property. An empty search boxes return 0.
-
Combo Boxes (pick lists) --> Depends on the field. Some are strings and others are Integers. User Defined Field pick lists are Integers. To get the text from a combo box use the .Display property.
Applies To
Properties and Methods
None
Available
The .Value object is available in:
- 15.03.016
- All newer builds
Note: The .Value object and all sub-classes, properties, and methods are only available in Form Layout scripts.
Type
Object
Syntax
Event.Form.Inputs(FID).Value;
Parameters
None
Example
//--Add this script to the contadd form layout
Event.Form.MessageBox('Values for various field types:' +
'\nText--Company: ' + Event.Form.Inputs('Input_eCONT_co_company').Value +
'\nNumber--Quota: ' + Event.Form.Inputs('Input_eCONT_co_quota').Value +
'\nDate--Next Action Due: ' + Event.Form.Inputs('Input_eCONT_co_nextdate').Value +
'\nCheck--Active: ' + Event.Form.Inputs('Input_eCONT_co_active').Value +
'\nSearch--Bill-To Company: ' + Event.Form.Inputs('Input_eCONT_co_biid').Value +
'\nCombo (pick list)--Available For: ' + Event.Form.Inputs('Input_eCONT_co_private').Value);
/*Expected Prompt response:
Values for various field types:
Text--Company: ABC Supply
Number--Quota: 0
Date--Next Action Due: null
Check--Active: true
Search--Bill-To Company: 1961
Combo (pick list)--Available For: All users
*/