Decimal Field
Data Type
Section titled “Data Type”Stores only numbers with decimal places. You can configure the number of decimal places. You can choose to have thousand separate or not.
Example
Section titled “Example”
Used to store numbers with decimal places (Number field stores numbers without decimal places). The default value of a decimal field is automatically set to 0 (zero).
Supported Functions
Section titled “Supported Functions”- Validations: Lets you validate the user input to the field via visual rules or a JavaScript.
- Visibility controls: You can set visual conditions so that this field is shown, hidden or made read-only
- Computations: Set the value of the field automatically by visually building an equation or assigning a JavaScript.
- Actions (Event handlers): You can execute one or more form operations when an action is triggered.
You can manage basic field configurations under the “General” Tab

You can set rules to validate decimal field values in various ways, either by a single rule or multiple rules based on conditions related to other field or variable values. These validations can check if a field:
- Is Equal To: : This validation checks if the value of the field is exactly the same as the value of another field a variable, or a custom value.
- Is Not Equal To: This validation ensures that the value of the field is different from the value of another field, variable or a custom value.
- Is Greater Than: This rule checks if the value of the field is higher than the value of another field, a variable, or a custom value.
- Is Greater Than or Equal To: This rule validates that the value of the field is either greater than or exactly equal to the value of another field, variable or a custom value.
- Is Less Than: This validation checks if the value of the field is lower than the value of another field, variable or a custom value.
- Is Less Than Or Equal To: This validation ensures that the value of the field is either less than or exactly equal to the value of another field, variable or a custom value
- Validate with Script: This allows for more complex validations using custom scripts. These scripts can be written to enforce specific rules that involve comparisons with other fields, variable or a custom value.
In the example below, we ensure that the miles traveled are greater than 0, thereby preventing the user from leaving the value as 0.

You can set rules to make a field conditionally visible, based on conditions related to other field or variable values.
In the example below, the ‘Miles Travelled’ field will be made visible only if the Expense Category is selected as ‘Travel’

You can set the value of the field automatically by building an equation that computes using other field values, form variables, system variables, or by using JavaScript. Additionally, the value can be computed conditionally based on other field values or form variables.
In the example below, the ‘Total Weight’ is calculated by multiplying the ‘Unit Weight’ by the ‘Number of Units’

You can configure multiple form operations based on different events:
- On Click: Executes when the user clicks on the field.
- On Focus Out: Executes when the user takes focus out of the field after typing.
The available operations include:
- Database: Runs a read/write/update operation on a local data table.
- HTTP: Calls an HTTP request.
- Script: Executes a JavaScript script.
- Assignment: Runs an assignment operation, such as setting the value of one or more fields or variables.
- Alerts : To communicate important information or actions to the user
- Save Card : Triggers the system to automatically save the card
The operations will execute in the same order as they are configured.