How to assign 1 point to a multiple choice fields only if all the correct answers are selected?

  • hayleymessing
    Asked on June 19, 2024 at 5:08 PM

    I have a quiz that includes both single choice and multiple choice questions. I have the quiz app connected to it. If the user passes with 80% i want a certificate emailed to them. I've associated values to each question so that I can use conditional logic to send the certificate. However, because there are numerous multiple choice questions i have to add values like .2, .25, .33 depending on the number of correct options so that it actually adds up to 1. This results in scores like 24.67 when they should be whole numbers. Due to that, the results of the quiz app and the values don't always match correctly and certificates might get mailed when they shouldn't. I have a logic that says if the % is 80 or more then enter pass in a field that the certificate logic is based on. I made a formula in the table for the form to get where i want to be but I can't use that on conditional logic.

    Is there something I am missing to get this to work?

    Thank you!

  • Rose JotForm Support
    Replied on June 19, 2024 at 5:32 PM

    Hi Hayley,

    Thanks for reaching out to us for help. I am currently working on your inquiry and need more time. I will get back to you shortly.

    Let us know if there’s anything else we can help you with. 

  • Rose JotForm Support
    Replied on June 19, 2024 at 5:44 PM

    Hi Hayley,

    Thanks for waiting. Please note that assigning a calculation value to an option from a multiple choice field and adding it to the calculation widget will not work since it's causing decimal points on the total score. If your goal is to give a solid 1 point to a certain multiple choice question if all the correct answers are selected, you can do the workaround if came up. Let me walk you through it:

    • For each of the Multiple Choice fields on your form, add a Short Text field next to it and set it as hidden. This will serve as the scoring basis for that specific question.

    How to assign 1 point to a multiple choice fields only if all the correct answers are selected? Image 1 Screenshot 50

    • To insert 1 point for question 3, add a calculation condition to insert 1 point in the hidden Short Text field if choices A, C, D, and E are selected. As you notice the condition must be set to "If all conditions are met".

    How to assign 1 point to a multiple choice fields only if all the correct answers are selected? Image 2 Screenshot 61

    • Here's how the scoring works in the backend. As you see, when ACDE is selected, the user will get 1 point but if B is selected, even if the other correct options are selected, the user will not get 1 point.

    How to assign 1 point to a multiple choice fields only if all the correct answers are selected? Image 3 Screenshot 72

    • You need to do the above steps for all the multiple choice fields on your quiz form. Once done, update the formula of your calculation widget and use the value of the hidden Short Text elements in the calculation.

    How to assign 1 point to a multiple choice fields only if all the correct answers are selected? Image 4 Screenshot 83

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

  • hayleymessing
    Replied on June 20, 2024 at 8:01 AM

    Thank you so much for your help and quick response!

 
Your Answer