...
Figure 2: Calculation Field Properties
| Name | Description |
|---|
| ID | Element ID (By declaring as "total", a corresponding database table column "c_total" will be created) |
| Label | Element Label to be displayed to end user. |
| Variables | | Name | Description |
|---|
| Variable Name | Declare a name to store current row equation result. | Info |
|---|
| - subtotal
- discountPercent
- charges
|
| | Field ID | Form Field ID to retrieve. In the example above, we are summing at a specific column from a Form Grid. Form Grid ID: entries Column in Form Grid: formattedAmount Field ID to be filled in: entries.formattedAmount | | Multivalue Operation | |
|
| Equation | Arithmetic operation using the variables declared above. |
...
| Info |
|---|
| - subtotal - (subtotal * discountPercent / 100)
- subtotal - discountAmount
- subtotal - charges (Correct)
- subtotal-charges (Wrong)
|
| Info |
|---|
| - It is important to include spacing in between operators.
- The position and spacing of all elements of an equation must be exactly as they are to appear in printed form.
|
|

Figure 3: Calculation Field Properties - Advanced Options
| Name | Description |
|---|
| Validator | Attach a Validator plugin to validate the input value. | Info |
|---|
| title | When will validation takes place? |
|---|
| Validation will takes place whenever form is submitted except when it is submitted as "Save as Draft". |
|
| Formatting Style | - US Style Formatting (1,000.00)
- European Formatting (1.000,00)
|
| Number of Decimal | Number of Decimal |
| Prefix | Prefix of the calculated value |
| Postfix | Postix of the calculated value |
| Use Thousand Separator? | Thousand Separator toggle. |
| Hidden? | Shows this element to the end user. |
| Display as Label? | Displays the value of the element as plain text. |
| Workflow Variable | If the form is part of a workflow process, upon saving of the form (by clicking on "Save as Draft" or "Complete" button). The value in this input field will be saved into the corresponding workflow variable named here. | Info |
|---|
| title | Using a non-existent Workflow Variable name |
|---|
| You will get the following warning with the name printed out (e.g. status) in the server log if you attempt to map to a non-existent Workflow Variable.
| Code Block |
|---|
context attribute status does not exist in process context - adding new attributes to the process context is not allowed |
|
|
...