-
kelsalynnAsked on January 3, 2020 at 1:10 PM
I want to create a personality quiz of sorts on my site. It would have a different value (let's say A, B, C, or D) assigned to each response for a 10 question quiz. If the person selects the most number of A responses it would spit out an "A" results screen, a "B" results screen for the most number of B responses and so on. But I'm not sure if it's possible to tally up quiz results this way. There would also be two questions that regardless of how they respond to the rest of the questions would be an automatic A or B results screen. Is this possible in jotform?
-
Kevin Support Team LeadReplied on January 3, 2020 at 2:56 PM
I think it's possible with some calculations and conditional logic.
1. You will need to add your field with the options and add a short text entry field per option in that field, example:
Note that you need to do this with every single field you need to calculate the total on your form.
2. Add conditions to insert a value in the corresponding field according to the selected option, example:
This guide will provide you more details about this type of conditions: https://www.jotform.com/help/268-How-to-Insert-Text-or-Calculation-into-a-Field-Using-Conditional-Logic
3. You need to add a Form Calculation widget to sum up all the fields, you will need one to sum up the A fields, another one for B and so on, example:
4. Then you need to add an additional Form Calculation widget where you will sum up the totals and get the highest one, sample calculation:
The following guides will help you with the calculations and the math functions:
https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget
https://www.jotform.com/help/267-Form-Calculation-Math-Function-Reference
5. The final step is to set up the conditions to redirect to the pages, you may do the following:
This example covers the case when the user selects A and redirects to this page regardless the other result, this may be omitted if needed.
This guide will help you with these conditions: https://www.jotform.com/help/317-Change-Thank-You-Page-URL-Based-on-a-Condition
I would recommend you to kindly give it a try with few fields and test it out, if you have questions, let us know.
-
kelsalynnReplied on January 3, 2020 at 3:20 PM
Thanks so much! I'll give this a try. It would have taken me forever to figure this out on my own.