Introduction
Last updated 12/11/2024
Display types specify how you want to display your data in your application. How you display your data in your application can be different to how it is stored in the database. Five has a number of built in display types that you can select to use in your application and you can also create your own custom display types. This enables you to create your own validation rules to enforce data accuracy by defining conditions that must be met before the data can be saved.
Some examples of validations you can set can be:
- A value range that can be entered in a field.
- The length of characters that can be entered in a field.
- Regular expressions and masks.
Custom display types can be created to determine how you want the field represented, such as the number of lines you want visible for the field.
Custom combo and radio display types with the selections you require for the field can be created.
Once you have a saved display type, it will be available to select in a number of views in the Display Type field when adding a field.
Display Type Fields
The following table provides a brief overview of each of the fields on the Display Type form.
Field | Description |
---|---|
Name | Name your display type. |
Display Type | Select a Five display type to base your display type on. |
Display Input Type | Select the keyboard to be used in mobile mode to enter the data. |
Minimum Lines | Displays the number of lines in the field. |
Maximum Lines | Used in conjuction with the Minimum Lines field, will display the minimum lines and will expand to the maximum lines as required. |
Justification | Select to justify the text to the left, centre, or right. Default: left. |
Minimum Length | Set the minimum characters allowed in the field. |
Maximum Length | Set the maximum characters allowed in the field. |
Pad Character | Add a padding. Example: 0 this would be padded to the value in the field based on the justification. This field is used in conjunction with the Maximum Length field. |
Minimum Value | Add an integer that will be the minimum number allowed. |
Maximum Value | Add an integer that will be the maximum number allowed. |
Decimal Places | Add the number of decimal places to be displayed. |
Blank When Zero | For an integer or float type, when enabled, 0 won't be shown if there is no other value in the field. |
Regular Expression | Determines if the value in the Mask field is a regular expression. |
Mask | Add a mask. Turn the Regular Expression switch to true if entering a regex. |
Field Data | Enter key: value pairs when adding a radio, a combo, a currency, an integer, or a float type. The key will be stored in the database and the value will be displayed for the display types radio and combo. |
Error Message | Type a message that will be displayed if a user enters a wrong value in the field. |