Form Builder: Calculate Fields Example
Calculated Data Example
This form example uses JavaScript to perform a mathematical calculation of three user input fields.
When creating the fields that need to be calculated, must give each field a unique ‘Property Name’ in the ‘API” tab of the field. Property names must follow JavaScript naming syntax. In this example, the fields have the property names of cost1, cost2, cost3.
The field receiving the calculation must have the example JavaScript code added to the 'Data' tab in the 'Calculated Value' section for field
Example JavaScript Code:
value = data.cost1 + data.cost2 + data.cost3;
To test this example preview your form by clicking the 'Preview' button
Updated on: 06/07/2022
Thank you!