Skip to main content

Getting Started with Calculable Fields

Calculable fields add dynamic calculations to your forms. You set them up in the Form module’s Content tab.

What you need​

  • PHP 8.0 or higher on the server.
  • Input fields for values (e.g. number, select, radio, checkbox).
  • A Calculation field type that runs the formula and shows the result.

Three main parts​

  1. Fields for calculation — Add number or choice fields and give them stable Field IDs. These IDs are used in the formula (e.g. %%quantity%%, %%price%%).
  2. Calculation field — Add a Calculation field, then enter the formula that references other fields by ID (e.g. %%quantity%% * %%price%%).
  3. Formulas — Use field IDs in %%...%%, numbers, and operators (+, -, *, /, etc.) to build the expression.

Where to configure​

  1. Open the page in the Visual Builder.
  2. Select the Form module → Content tab.
  3. Add or edit fields; set Field ID on each source field.
  4. Add a Calculation field and enter the formula in its options.

Verify the setup​

  1. Preview the page and enter test values (for example quantity 2, price 50).
  2. Confirm the calculated value updates to the expected result.
  3. Submit a test entry and verify saved/email values use the correct total.

Common mistakes​

  • Using non-numeric values in fields expected by formulas.
  • Changing Field IDs after formulas are configured.
  • Assuming rounding/formatting in the UI also changes raw values.

What's Next​