Pre-Requisites for Using the Math Element
The Math form element functions off of other numerical only form elements in the form builder. As such, to make use of the math element, you'll need to make sure you have a numeric element available before you can set it up.
You can also use other numeric only form elements, such as the math field itself, as well as the sum form element.
Configuring the Math Form Element
Drag and drop the Math form element into your form.
Name the Math element.
To create a mathematical expression:
Click on the available numeric elements already in your form above the Mathematical Expression box.
Paste this code into the expression area - this code can be used as a variable reference to that form element.
Supported mathematical operations include:
Addition
+
Subtraction
-
Multiplication
*
Division
/
Click "Update" to save your changes.
β
Step 4: Test the Math Element
Enter values into the numeric fields.
The Math element should automatically calculate the result.
Using the Sum Form Element
Step 1: Understand the Sum Element
The Sum element aggregates values from a Repeatable Form Section. It is particularly useful for summing dynamic, variable data that is difficult to capture with standard Math fields.
Step 2: Set Up a Repeatable Form Section
Add a Repeatable Form Section to your form.
Within this section, add a numeric field
Step 3: Configure the Sum Element
Drag and drop the Sum form element into your form.
Name the Sum element
Select the Repeatable Form Section from which you want to aggregate data.
Choose the numeric field you want to sum
Click "Update" to save your configuration.
Step 4: Test the Sum Element
Add items to your Repeatable Form Section and enter values into the numeric field.
The Sum element will automatically calculate and display the total sum as you add more items.
Advanced Use: Combining Sum with Math Elements
You can combine Sum elements with Math elements to perform further calculations.