This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/workflow-automation/admin-guide/forms/calculations-in-forms.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Calculating totals in forms

On some forms, you may want to include calculations that display as information is entered. A good example is when your form has line items and you want to show totals directly in the form.

For example, the form below shows totals for each line and for all lines.

Form with Cost Detail line items, a per-line total of 450 and a Project Total of 630 marked with red callouts

To set up calculations, create a new rule in the form. At the top of the form designer, click Rules > + Add Rule. Give the rule/calculation a name, and then follow the instructions below.

Rule editor with Number and Cost conditions and a Total field effect set with the function b * f, annotated with red callouts

Notes

  • The conditions (the fields being calculated) must be number fields.
  • Don’t add more conditions than you’ll be using. Unused conditions may cause errors in calculations.
  • Leave spaces between each variable and operator or the rule may not function correctly.