Multiple Choice: How does calculation values work?

  • sfatc_admin
    Asked on July 24, 2024 at 10:11 PM

    Hi Support,

    I just want to ask regarding the Multiple Choice widget.

    What is the behavior of this widget? For example, if the user didn't click ALL of the correct items is it considered as "zero/0" ?

    Because this is what I did ,


    Multiple Choice: How does calculation values work? Image 1 Screenshot 20

  • Sonnyfer JotForm Support
    Replied on July 25, 2024 at 1:13 AM

    Hi sfatc_admin,

    Thanks for reaching out to JotForm Support. The calculation values in the Multiple Choice field are set to get the total value of selected options. In your screenshot, for example, the field's value would be four 1's so it's 4. You can check out this guide to learn more about Form Calculations. Also, as I understand, you're trying to make some sort of Quiz or Exam on your form, if that is correct, then you can actually turn your form into a Quiz easily, see this link for the step-by-step guide.

    Let us know if you need any more help.

  • sfatc_admin
    Replied on July 25, 2024 at 3:37 AM

    Hi Support,

    Thank you for the suggestion of making a quiz.

    For the Multiple Choice field, how to become the result as "zero/0" if the user will not click all the correct choices?


  • Chris_L JotForm Support
    Replied on July 25, 2024 at 4:06 AM

    Hi sfatc_admin,

    To do this, you can set up an Update/Calculate Field conditional logic. For demo purposes, I created this demo form. Here's how I set it up:

    1. In Form Builder, in the orange navigation bar at the top of the screen, click on Settings.
    2. Click on Conditions on the left side of the screen.
    3. Select Update/Calculate Field from the options.
      Multiple Choice: How does calculation values work? Image 1 Screenshot 40
    4. Set two conditions just like what you see in the screenshots below:
      Multiple Choice: How does calculation values work? Image 2 Screenshot 51
      Multiple Choice: How does calculation values work? Image 3 Screenshot 62
    5. Finally, click on Save.

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

  • Chris_L JotForm Support
    Replied on July 25, 2024 at 4:08 AM

    Hi sfatc_admin,

    I misunderstood the question. Please give me more time to work on a solution. I’ll get back to you shortly.


  • Chris_L JotForm Support
    Replied on July 25, 2024 at 4:59 AM

    Hi sfatc_admin,

    Thanks for waiting. In my demo form, the correct answers are Option 1, 2, and 3. Instead of using the conditions I showed in my earlier reply, please set the conditions just like what you see in the screenshots below:

    Multiple Choice: How does calculation values work? Image 1 Screenshot 40

    Multiple Choice: How does calculation values work? Image 2 Screenshot 51

    Also, depending on the number of correct answers, you have to set an entry limit. I my demo form, the correct answers are three, so I set it to three. Here's how to do it:

    • Select the Multiple Choice element and click on the Gear icon.
    • Under the Surveying tab, toggle the Entry Limit switch to On.
    • Set a value to the text box above Maximum.
      Multiple Choice: How does calculation values work? Image 3 Screenshot 62

    You are free to test my demo form. You can also clone it to review its settings.

    Reach out again if you need any other help.

  • sfatc_admin
    Replied on July 25, 2024 at 5:17 AM

    Hi Chris,

    Thank you for this. But how about if I want to change the total of the answer to "1" ?

    If the user answered the 3 correct items it will fall to "1"
    If the user will not answer the 3 correct items it will fall to "0"
    And also I want to required to choose the user to select 3 items 


    Multiple Choice: How does calculation values work? Image 1 Screenshot 20

  • Chris_L JotForm Support
    Replied on July 25, 2024 at 5:37 AM

    Hi sfatc_admin,

    If that's the case, you do not need to assign calculation values to each of the answers. It is also easier to set conditions. Below is the screenshot of the condition in my demo form:

    Multiple Choice: How does calculation values work? Image 1 Screenshot 30

    You also need to assign a default value to the Score field. Here's how to do it:

    • Select the Score field and click on the Gear icon.
    • Under the Advanced tab, set a value of 0 in Default Value.
      Multiple Choice: How does calculation values work? Image 2 Screenshot 41

    To require the user to select at least 3 answers, set a value of 3 in the Minimum Entry Limits. You can refer to the steps in my previous reply.

    Reach out again if you need any other help.

  • sfatc_admin
    Replied on July 25, 2024 at 6:14 AM

    Can you send me the demo link and link for clone? thank you.

  • Chris_L JotForm Support
    Replied on July 25, 2024 at 6:33 AM

    Hi sfatc_admin,

    The demo form is the same as what I've used above. Here's the link.

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

  • sfatc_admin
    Replied on July 25, 2024 at 10:40 PM

    Hi Chris,

    Thank you so much.

    I cannot see the form actually because I want to clone it.

  • Sonnyfer JotForm Support
    Replied on July 25, 2024 at 10:45 PM

    Hi sfatc_admin,

    In case the link doesn't work for you, you can copy the below form URL instead when you clone it.

    https://www.jotform.com/242062202114033/

    Let us know if you need any more help.

  • sfatc_admin
    Replied on July 26, 2024 at 6:20 AM

    Hi Sonnyfer and Chris,


    I already did all of the tutorials regarding the issue, and they work. However, I have a major problem and it is all about calculations.

    Does FORM CALCULATION WIDGET add the result in SHORT TEXT ELEMENT?


    Multiple Choice: How does calculation values work? Image 1 Screenshot 20

    https://www.jotform.com/build/242049030542446


  • Chris_L JotForm Support
    Replied on July 26, 2024 at 7:02 AM

    Hi sfatc_admin,

    I didn’t fully understand the issue, are you trying to pass the value from Form Calculation widget to Short Text element? If so, you can use set a conditional logic just like what you see in the screenshot below:

    Multiple Choice: How does calculation values work? Image 1 Screenshot 20

    If that’s not exactly what you’re looking for, can you explain a bit more so I can help you better?

Your Answer