How to perform calculations in Input Table?

  • jakeadkins
    Asked on June 20, 2024 at 9:11 AM

    Hello,

    I am trying to add several columns within a single row together to give me a line total. Can you provide instructions on how to accomplish this?


    Thank you,


    Jake

    Jotform Thread 16100981 Screenshot
  • Shirized JotForm Support
    Replied on June 20, 2024 at 9:27 AM

    Hi Jake,

    Thanks for reaching out to Jotform Support. Can you explain a bit more about your question, so I can help you better? If you want to perform a calculation in your Input Table, you need to add calculation values for your columns. But this requires a form calculation widget to do this.

    How to perform calculations in Input Table? Image 1 Screenshot 20

    You can also use conditional logic to perform calculations in the Input Table field, and output the result on a text box field within the same Input Table field. But if you can give us more information on how the calculation works in your Input Table, we can help you to accomplish this.

    Keep us updated and let us know if you need any more help.

  • jakeadkins
    Replied on June 20, 2024 at 9:44 AM

    So what I am trying to do with each row in the table is this:

    The only fields the user will need to populate are 'Amount", "Tip", "Claim %", and 'Receipt total' and "Total claim" will be calculated values


    Amount + Tip = Receipt total Receipt total * (Claim % / 100) = Total Claim

  • jakeadkins
    Replied on June 20, 2024 at 9:45 AM

    Amount + Tip = Receipt total

    Receipt total * (Claim % / 100) = Total Claim

  • Jemuel JotForm Support
    Replied on June 20, 2024 at 10:03 AM

    Hi Jake,

    I tried setting up conditions to calculate the receipt total and total claim. Could you please check if this meets your requirements? Let me show you how I configured it:

    1. In Form Builder, click on Settings at the top.
    2. Click on Conditions on the left, and click on Add condition. How to perform calculations in Input Table? Image 1 Screenshot 60
    3. Select Update/Calculate Field. How to perform calculations in Input Table? Image 2 Screenshot 71
    4. Now, set up the conditions. You can copy my conditions as shown below.
    5. Lastly, click on Save. How to perform calculations in Input Table? Image 3 Screenshot 82 How to perform calculations in Input Table? Image 4 Screenshot 93

    Here's my result: How to perform calculations in Input Table? Image 5 Screenshot 104

    Here's my demo form. You can clone it to test or inspect.

    If the calculation meets your requirements, you can replicate the process for each row.

    Keep us updated and let us know if you need any more help.

  • jakeadkins
    Replied on June 20, 2024 at 2:35 PM

    Thank you both this was very helpful and my form is now complete with correct calculations.

    Ione other question I had was how do I add the "Approve" "Deny" buttons directly to the email sent by the Approve sign function. The current template I have has a "Check inbox" button instead on the approve deny.


    Thank you,

    Jake

  • Deanne JotForm Support
    Replied on June 20, 2024 at 3:03 PM

    Hi Jake,

    Since your new question is related to another topic, I have moved it to another thread. You can check it out here.

    Let us know if you have any other questions.

 
Your Answer