Skip to main content

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.

FieldDescription
NameName your display type.
Display TypeSelect a Five display type to base your display type on.
Display Input TypeSelect the keyboard to be used in mobile mode to enter the data.
Minimum LinesDisplays the number of lines in the field.
Maximum LinesUsed in conjuction with the Minimum Lines field, will display the minimum lines and will expand to the maximum lines as required.
JustificationSelect to justify the text to the left, centre, or right. Default: left.
Minimum LengthSet the minimum characters allowed in the field.
Maximum LengthSet the maximum characters allowed in the field.
Pad CharacterAdd 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 ValueAdd an integer that will be the minimum number allowed.
Maximum ValueAdd an integer that will be the maximum number allowed.
Decimal PlacesAdd the number of decimal places to be displayed.
Blank When ZeroFor an integer or float type, when enabled, 0 won't be shown if there is no other value in the field.
Regular ExpressionDetermines if the value in the Mask field is a regular expression.
MaskAdd a mask. Turn the Regular Expression switch to true if entering a regex.
Field DataEnter 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 MessageType a message that will be displayed if a user enters a wrong value in the field.