The following will help you troubleshoot the most common issues that may come up when configuring calculations in form fields.
Formula is Displayed as Text
Confirm that the formula begins with = and that the Formula tab was selected in the Edit variable mapping dialog box.
Calculated Field is Blank
- Confirm that every reference uses an existing field ID or variable name.
- For a repeatable section field, include the repeatable section ID in the reference.
- Confirm that the target field type can accept the calculated result.
- Check for invalid operations. For example, division by zero produces a blank result.
Calculated Result Changes for Only One Input Field
Create an equivalent Field value changes rule for every editable input used by the formula.
Calculated Result does not Change when Repeatable Section Rows are Added or Removed
Create a Row count changed rule on the repeatable section and recalculate the affected row and summary fields.
Calculation in a Repeatable Section Returns an Unexpected Result
- Use a section-qualified reference such as ${field.POItems.Quantity}.
- Use dotMultiply or dotDivide, not * or /, when a formula multiplies or divides two repeatable-section fields and writes the result to a field outside the section.
- Use rowCount rather than count when the required result is the number of rows.
- If actions depend on one another, place them in calculation order within the rule.
Button does not Trigger the Calculation
Confirm that the rule uses the event associated with that button type:
- For a button field, use its click field event.
- For a form outcome button, use .