How to Perform Form Calculation Using a Widget

September 15, 2021

Wondering how you can calculate a total based on the option selected by the user from your form? Calculations are now possible with JotForm. There are two ways to do this – you can use Conditional Logic or you can use the Form Calculation Widget. In this guide, we will discuss how to use the widget to perform a calculation.

Video Tutorial
  1. Click on Add Form Element.
  2. Go to the Widgets tab, search for Form Calculation and add it to your form.
    Form Calculation

    Form Calculation

  3. Now as an example, we will calculate the price of the Product selected on a radio button multiplied by the Quantity on a number field.

    Note: If you want to assign a Calculation Value on a radio button, drop-down, or checkbox field, then you need to check this guide: How to Assign Calculation Value

    Calculation Value

    Calculation Value

  4. Click the Form Calculation widget to highlight it then click the wand icon.
    Form Calculation widget

    Form Calculation widget

  5. On the widget wizard, click the Add Field button to add the fields that will be a part of your formula.
    Add Field button
  6. Finally, once you’re done with the formula, click the Save button.
    formula

If you want to perform advanced mathematical operations, you can check this guide as a reference: Form Calculation Math Function Reference

Here’s an example form based on our steps above.

The Form Calculation widget is not limited to the example above – it would depend on the requirement you need or how complex your formula is.

Questions? Please let us know below!

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact JotForm Support: https://www.jotform.com/contact/

Send Comment:

JotForm Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments: