GT eForms Field Properties
GT eForms uses a set of generic fields on its form pages, regardless of which fields are used in the form type setup. The field data and display formats are captured in this document.
Default Field Data and Display Types
When selecting field data types in the segment configuration page the field display types are defaulted and set to only allow those display types that are compatible with that specific data type. Similarly, when a field display type is selected the same process is run for the field data types. The graphic below illustrates which fields are valid and which are defaulted for field data and display types.
Default Data Types by Display Type
| Display Type | Default Data Type | Other Valid Data Types |
|---|---|---|
| Button | Code | |
| Checkbox | Code | |
| Currency | Two Decimal | Integer, Large Number |
| Date | Date | |
| Dropdown | Code | Integer, Medium Text, Short Text |
| Edit | Medium Text | Code, Integer, Large Number, Long Text, Short Text, Two Decimal |
| Instructions | Long Text | |
| Link | Code | |
| Prompt | Medium Text | Code, Integer, Short Text |
| Rich Text | Long Text | |
| Time | Time |
Default Display Types by Data Type
| Data Type | Default Display Type | Other Valid Display Types |
|---|---|---|
| Code | Dropdown | Button, Checkbox, Edit, Link, Prompt |
| Long Text | Edit | Instructions, Rich Text |
| Medium Text | Edit | Dropdown, Prompt |
| Short Text | Edit | Dropdown, Prompt |
| Date | Date | |
| Time | Time | |
| Integer | Edit | Dropdown, Prompt, Currency |
| Two Decimal | Edit | Currency |
| Large Number | Edit | Currency |
Field Data Type Length
The following tables show the length of each field by data type.
Text Fields
| Data Type | Length (characters) | Details |
|---|---|---|
| Code | 4 | Maximum is 4 characters to allow for translate values. |
| Long Text | N/A | |
| Medium Text | 100 | |
| Short Text | 30 |
Date/Time Fields
| Data Type | Length (characters) | Details |
|---|---|---|
| Date | 10 | Displayed as MM/DD/YYYY |
| Time | 15 | Displayed as HH:MI with AM/PM immediately following |
Number Fields
| Data Type | Length (characters) | Details |
|---|---|---|
| Integer | 31 | Can not be a negative number |
| Two Decimal | *29.2 | This number can be a negative number |
| Large Number | *25.6 | This number can be a negative number |
Above, you see that Two Decimal and Large Number fields have respective length limits of 29.2 and 25.6.
This means the following:
- Fields with the
Two Decimaldata type can have29characters before the decimal and2characters after the decimal - Fields with the
Large Numberdata type can have25characters before the decimal and6characters after the decimal
Selected Fields
The system will create generic fields using the formats and field lengths shown above.
If a user picks a field with 10 characters, the system will use a Short Text field because it is the smallest generic field that can accommodate that. A 2-character field will end up being a Code field even though Code can hold 5 characters. A number with 4 decimals will end up being a Large Number because it has 6 decimals.
Even if a field technically allows up to 2 characters, users may enter more characters due to the use of a generic field, but the system will fire a validation warning them of the actual field character limit.