How to get the total answers per column in input table?

  • Heintz_Kim
    Asked on June 19, 2024 at 2:52 PM

    Hi, I am currently building a Symptom Checker form, which enables the customers to choose the radio buttons that best describe their answer for each symptom they might currently be experiencing. The answers they can choose are in columns (Not at all, A little, More than a little, A lot, and Severe)

    What I want to do is to tally up all the answers they have under each of the columns.

    How can I use the form calculation feature to this goal?

    Kind regards,

    How to get the total answers per column in input table? Image 1 Screenshot 20

  • Wilson JotForm Support
    Replied on June 19, 2024 at 3:40 PM

    Hi Kim,

    Thanks for reaching out to Jotform Support. Yes, it is possible however, you need to have a Column Types in a Textbox. I'll show you how to do that:

    1. First, create the Input Table and change the Field Types to Multi-Type Columns.
    How to get the total answers per column in input table? Image 1 Screenshot 50
    2. Next, we will add the Calculation Values for each column.
    How to get the total answers per column in input table? Image 2 Screenshot 61

    3. Then, we will add the Conditional Logic to Update/Calculate the Field. In this process, every time they select an option, the score will show in the Score column. Check the screenshot below for the conditional logic as a reference:
    How to get the total answers per column in input table? Image 3 Screenshot 72
    4. Add another condition for each column and do that same condition as you see above for the first column. Check out the screencast below to see my results:

    How to get the total answers per column in input table? Image 4 Screenshot 83
    These are the guides that you can check:

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

  • Heintz_Kim
    Replied on June 20, 2024 at 8:22 AM

    Hi Wilson,

    When I opt for Multi-Type Columns this is what it shows:
    How to get the total answers per column in input table? Image 1 Screenshot 20

    Which doesn't look good and confusing for the user, do I need to re-do everything as I only imported the table from my old form?

  • Chris_L JotForm Support
    Replied on June 20, 2024 at 9:10 AM

    Hi Kim,

    You may want to set the Input Table fields to Checkbox. This option will allow you to calculate the value using the Form Calculation widget. I can walk you through setting that up:

    1. In Form Builder, select the Input Table and click on the Gear icon.
    2. Under the Options tab, in the text box under Calculation Values, set a value to each of the radio buttons.How to get the total answers per column in input table? Image 1 Screenshot 70
    3. While you're in the Input Table's properties, click on the Fields tab.
    4. Set the Input Type to Checkbox.How to get the total answers per column in input table? Image 2 Screenshot 81
    5. While in Form Builder, click on the Add Form Element menu on the left side of the page.
    6. Under the Widgets tab, search for Form Calculation, drag and drop the widget to your form. How to get the total answers per column in input table? Image 3 Screenshot 92
    7. While in Form Builder, in the blue navigation bar at the top of the page, click on Settings.
    8. Click on Conditions in the menu on the left side of the page.
    9. Select Update/Calculate Field.How to get the total answers per column in input table? Image 4 Screenshot 103
    10. Set the condition just like what you see in the screencast below: How to get the total answers per column in input table? Image 5 Screenshot 114 Do the same with the other columns.
    11. Click on Save to save your work.

    If you do not want the widgets to be displayed to your form respondents, you can set them to hidden. Below is a screencast of the expected result:

    How to get the total answers per column in input table? Image 6 Screenshot 125

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

  • ezrahidaya
    Replied on July 1, 2024 at 5:22 AM

    Jotform is so user-friendly and easy to use, that I made many forms that took only a few hours. I am now creating a timetable for my classroom but I can't find some blocks to them on the table. With the help of , I was able to track my work. It would be great if I get the video instructions for it.

 
Your Answer