Calculate Values in the Input Table Through Condition

April 17, 2024

Form Calculation is one of the advanced features of Jotform. You can perform calculations using the FormCalculation Widget or the Update/Calculate Field condition.

In this guide, you’ll learn how to perform calculations in the Input Table field using the Conditional Logic and output the result on a text box field within the same Input Table field.

Youtube Embed Poster: OEVusnCusLc

Here’s a demo form you can check: The result would look like the below image:


Adding the Input Table Field

First, you should have the Input Table field in the form. Here’s how you can add that:

  1. In the Form Builder, click the Add Form Element button.
  2. Scroll down to Survey Elements.
  3. Click the Input Table field to add. You can also drag and drop it into the form.
  1. Set it up according to your preferred columns and rows. Here’s an example based on the above demo form:

Now that you have the Input Table ready let’s set up the conditional logic to calculate the values.

Calculating the Values in Input Table With Condition

In the above form, the 1st, 2nd, 3rd, and 4th columns are summed up into the 5th column labeled Total. Here’s how you can do that:

  1. Go to the Settings tab.
  2. Click Conditions on the left panel.
  3. Choose Update/Calculate Field from the logic options.
  1. Create your conditional logic according to the below GIF:

Repeat the same step for the other rows.

If you also want to perform calculations on the Input Table field with a checkbox or radio button input types, refer to this guide: How to Perform Form Calculation in the Matrix Field.

Academy Logo

Introduction to Form Building

Adding Conditional Logic Elements

Go to course :Adding Conditional Logic Elements
lesson-2 - image
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:

Contact Jotform Support:

Send Comment:

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


  • infoskipxcouk - Profile picture
  • JLA Purchasing - Profile picture
  • AFC INDUS - Profile picture
  • Ashika Ganesh - Profile picture