Follow

Calculation (Computed Label)

admin

Derive values based on calculations, formulas and values of other fields. The calculation formula accepts standard Javascript, more detail on that can be found in our section on Scripting/Rules.

Configuration

Setting Description
Field Label The label displayed for the field. This is usually displayed at the top left corner above the field.
Field Key A Key used to reference the field in submission data. The key is also used to reference the field in rules and calculations.
Default Value The value that will be used to pre-populate the field when the form is initially opened.
Decimal Positions The number of decimal position to show in the value.
Field Rules A Rule or JavaScript snippet that allows you to perform actions on fields or sections within the form. The actions can include hide, show, enable, disable, showSection and hideSection. Rules are executed on field value changes and when the form is opened.

ex.
if ($field1$ > 23) { hide(); } else { show(); }

(Please see this link for more information)
Hide Question Hides the Field Name label.
Hidden If enabled the field and all labels are not visible.
Exclude Report If checked, the field will be excluded from HTML and PDF reports and will also be excluded from Excel and CSV exports.
Exclude Sync If enabled the value of the field will not be submitted in the form submission.
Force String Output Treats the output of the calculation field as a text string whether or not the output is a string, number, or some other Javascript value. 
Calculation Formula A JavaScript snippet that allows you to perform mathematical functions on fields within the form.

ex.
return $field1$ * $field2$;

(Please see this link for more information)
Color Choose a theme to change the background and font colors of the field cell as displayed in the apps.

Result Data

Data Type Domain of Values Example JSON
String N/A { "computed_1": "555-55-5555" }
Have more questions? Submit a request

Comments