Input Table: Calculate total for selection

  • CVHSPTO
    Asked on April 11, 2024 at 10:31 AM

    Second is the calculation part that isn’t calculating and the third is where all the calculations would then be tallied automatically.

    Yes I need help! Image 2 Screenshot 51 Screenshot 10Yes I need help! Image 3 Screenshot 62 Screenshot 21


  • Shane JotForm Support
    Replied on April 11, 2024 at 11:07 AM

    Hi CVHSPTO,

    Thanks for reaching out to Jotform Support. To sum up the score for each Input Table, you can add a Form Calculation widget after each one. But first, make sure to add Calculation Values to each of the Input Table's cell. I'll walk you through setting that up:

    First, set up the calculation values:

    1. In Form Builder, click on the Gear icon of the table.
    2. Go to the Options Tab.
    3. Set the Calculation Values the same as below (comma separated values, and new line for each row):

    Input Table: Calculate total for selection Image 1 Screenshot 70Do the above steps for each of the Input Tables. Next, replace the total field with Form Calculation widget:

    Input Table: Calculate total for selection Image 2 Screenshot 81Then, set the value for the widget:

    1. Click on the Wand icon.
    2. Click on Add Field, then select the Input Table connected to the widget.
    3. Select all rows, then add a Plus (+) sign after each row.

    Input Table: Calculate total for selection Image 3 Screenshot 92 How the widget value should look:

    Input Table: Calculate total for selection Image 4 Screenshot 103
    Lastly, to get the total for all the Form Calculation widgets:

    1. Click on the Wand icon, then click Add Field.
    2. Select a Form Calculation widget with the total.
    3. Repeat steps 1 and 2 for each total, then add a Plus (+) sign after each row.

    Input Table: Calculate total for selection Image 5 Screenshot 114 For the purpose of this demo, I only added two form calculation widgets for the total. See screencast below for the expected result:

    Input Table: Calculate total for selection Image 6 Screenshot 125 Here is my clone form which you can check and clone. We also have a guide about How to Perform Calculations Using a Widget that you can check out.

    Give it a try and let us know if you need any other help.

  • CVHSPTO
    Replied on April 18, 2024 at 12:26 PM

    Hi. Thank you so much for your help! I still have the calculations that are being added from one section and it adds it on the next section. Input Table: Calculate total for selection Image 1 Screenshot 30Input Table: Calculate total for selection Image 2 Screenshot 41

  • Silvano JotForm Support
    Replied on April 18, 2024 at 12:55 PM

    Hi CVHSPTO,

    Thanks for getting back to us. I cloned and tested your form, and I was able to replicate the issue. But, after carefully checking your form, it seems you added the wrong field on the calculation widget. You will need to edit the calculations you've set up on the 2nd Total Score Field. It's easy, let me show you how:

    1. In Form Builder, click on the 2nd Calculation Widget element and click the Wand Icon.
    2. Now, in the right panel, delete the current calculation. Then click on Add Field button, scroll down to #13 and select all sub-fields.
    3. Next, enter Plus sign in between of each sub-fields.
    4. Finally, click on Save Button. Input Table: Calculate total for selection Image 1 Screenshot 30

    Here's the screencast of my result: Input Table: Calculate total for selection Image 2 Screenshot 41

    Give it a try and let us know if you have any other questions.

  • CVHSPTO
    Replied on April 23, 2024 at 12:57 PM

    Input Table: Calculate total for selection Image 1 Screenshot 20Oh my goodness you are the best! But I have one more issue regarding the total- I need help with getting the total scores for each candidate into the final box totals.

    capybara 12

    owl 11

    I no longer need the total points added up at the end- but really just need each candidates score. Also, is there a possibility to get them listed highest to lowest?


    THANK YOU! I have almost given up on this.

  • Arslan JotForm Support
    Replied on April 23, 2024 at 1:18 PM

    Hi CVHSPTO,

    Thanks for getting back to us. Unfortunately, it is not possible to sort Input Table fields based on highest to lowest score but, you can add the individual scores to the Input Table by using Update/Calculate condition. Let me walk you through it:

    1. Open your form in Form Builder, and in the orange navigation bar at the top of the screen, click on Settings.

    2. In the menu that opens on the left side of the page, click on Conditions.

    Input Table: Calculate total for selection Image 1 Screenshot 40

    3. Click on Add Condition, select Update/Calculate field, and set a condition to copy the score to Input Table as shown below:

    Input Table: Calculate total for selection Image 2 Screenshot 51

    4. Repeat the steps for each cell on the Input Table. That's it.

    Here is how it will work:

    Input Table: Calculate total for selection Image 3 Screenshot 62

    Give it a try and reach out again if you have any other questions.

  • CVHSPTO
    Replied on April 23, 2024 at 3:09 PM

    So will this basically move their total scores into the boxes at the bottom? Like if the first is 15 second is 20 then #1 will have their score, #2 20, 3rd their total?Input Table: Calculate total for selection Image 1 Screenshot 20

  • Camila JotForm Support
    Replied on April 23, 2024 at 3:23 PM

    Hi CVHSPTO,

    Thanks for reaching out to Jotform Support. I understand the issue, but I’ll need a bit of time to work out a solution. I’ll get back to you shortly.

    Thanks for your patience and understanding, we appreciate it.



  • Camila JotForm Support
    Replied on April 25, 2024 at 2:05 PM

    Hi CVHSPTO,

    Thanks for patiently waiting, Yes that's correct. The total will be show at the bottom or in the calculation field. Each rows will calculate then the final total will show on the calculation field. May I verify if this is what you are referring too? If so, let me show you how:

    1. In Form Builder, click on input table.
    2. Click on conditions on the right side of the field. Input Table: Calculate total for selection Image 1 Screenshot 50
    3. Click on Gear Icon.
    4. Click on Disable.Input Table: Calculate total for selection Image 2 Screenshot 61
    5. Then, click on Calculation.
    6. Click on Wigdet settings on the right side of the field.
    7. A menu will show on the right side.
    8. Click on Add field.
    9. Look for Input table 45. Note Input Table: Calculate total for selection Image 3 Screenshot 72
    10. Click on check box.
    11. Click on Done
    12. Click on +
    13. Lastly, click on Save.

    Note: Do this one by one so that you don't have a conflict.

    Input Table: Calculate total for selection Image 4 Screenshot 83

    You can check out this Demo Form so you can try it by yourself. If you want to clone the form, you can check out this guide about How to Clone an Existing Form From a URL.

    Give it a try and let us know how it goes.

  • CVHSPTO
    Replied on April 28, 2024 at 12:35 PM

    Okay I did all of that but nothing actually populates in the big chart.. I want the scores that were calculated at the end of each students survey to be “populated” into the chart.Input Table: Calculate total for selection Image 1 Screenshot 30Input Table: Calculate total for selection Image 2 Screenshot 41

  • Harshad_P JotForm Support
    Replied on April 28, 2024 at 12:54 PM

    Hi CVHSPTO,

    Thanks for reaching out to Jotform Support. I am sorry you are having an issue with this. If you need to add the total for each section into the table then you will need to set up separate conditions for each Form calculation to pass the value to each raw in the last table. Let me show you how:

    1. In Form Builder, click on Setting in the Orange bar at top of the screen.
    2. Select Condition from the left panel.
    3. Click on Add New Conditions and select the Update/Calculate field.
    4. Set up the condition show in my screencast below. (Ensure to set up separate condition for each section.)
    Input Table: Calculate total for selection Image 1 Screenshot 30
    Here is what the results look like:
    Input Table: Calculate total for selection Image 2 Screenshot 41
    Give it a try and let us know how it goes.

  • CVHSPTO
    Replied on April 28, 2024 at 2:25 PM

    It workkkkeddd 😭 thank you!

  • CVHSPTO
    Replied on April 28, 2024 at 2:49 PM

    one quick question- if I clone a form- will it have all the calculations formatted correctly? Or will I have to insert new calculations etc.
  • Silvano JotForm Support
    Replied on April 28, 2024 at 2:53 PM

    Hi CVHSPTO,

    Thanks for getting back to us. I answered your other question on a new thread. You can go ahead and check that out here. 

    Let us know if you have any other questions.

 
Your Answer