The Decimal widget allows users to enter numeric values that contain decimal places. Use this widget to capture measurements, percentages, quantities, exchange rates, prices, or other values that require fractional precision.
The value of the field can be used in calculations, using the Value in the Payload section of a form rule. For more information, see Creating Form Rules.
The basic properties of the widget are defined in the General tab and are as follows:
| Property | Description |
|---|---|
| Label | Text displayed to users on the form. The label identifies the purpose of the field. For example,:First name. |
| ID | Unique identifier assigned to the widget. The ID is used internally to identify the field within the form definition. For example, Text070upd. |
| Required | Determines whether users must provide a value before submitting the form. When enabled, the field becomes mandatory. |
| Read-only | Determines whether users can modify the field value. When enabled, the field is displayed but cannot be edited. |
| Colspan | Specifies how many columns the widget occupies within the form layout. Use this property to control field width and alignment within grid-based layouts. |
| Rowspan | Specifies how many rows the widget occupies within the form layout. Use this property to control field height and alignment within grid-based layouts. |
| Placeholder | Default text displayed when the field has no value. Placeholders can be used to provide examples or guidance about the expected input. |
| Tooltip | Help text displayed when users hover over or select the field's help indicator. Tooltips provide additional instructions or context about the field. |
The advanced properties of the widget are defined in the Advanced tab and are as follows:
| Property | Description |
|---|---|
| Default value | Specifies the default decimal value displayed when the form opens. |
| Min value | Specifies the smallest decimal value that can be entered into the field. |
| Max value | Specifies the largest decimal value that can be entered into the field. |
| Precision | Specifies the number of digits displayed after the decimal point. |