Results based on majority choice rather than score

4 years 8 months ago #1 by Darren
Hi

Thank you for such a great Quiz component, very easy to use.

I have a client who want's a Survey/Quiz where the results are assessed on a majority choice rather than an overall score.
For example 'Q.1 choose either answer A, B, C, D, or E. Q2 choose A, B, C, D, E etc.
The results are then based on what letter would be the majority choice. If I apply a numeric score value to A=1, B=2, C=3, D=4, E=5 the results are incorrect as AAAEE is a majority 'A' but scores 13, similar to ABCCC which as a majority 'C' but scores a close 12.

Ideally, it would be great if the results simply outputted the chosen letters, ( "you chose A A A B C") then the user can use a key to determine their outcome.
For example. Mostly A's therefore you are this type of person, Mostly B's you are this type of person etc.

I'm not sure if there is a way to do this with SimpleQuiz as it stands or if you would consider it as a payable 'custom' job/feature?

Best wishes

Darren

Please Log in or Create an account to join the conversation.

4 years 8 months ago #2 by Christopher Mavros
Replied by Christopher Mavros on topic Results based on majority choice rather than score
Hello Darren and thank you for posting.

SimpleQuiz has an undocumented feature that allows each question to gather a different score.
Instead of writing [score=1/] you could write [score:1=1/] for A options, [score:2=1/] for B options, [score:3=1/] for C options, etc.
At the end, you could filter the results using these scores as such:
[score:1 > 4] This will only show if the user has selected 5 or more As. [/score:1]
[score:2 > 7] This will only show for users who select more than 7 Bs. [/score:2]

I know it does not offer comparison at the moment, for you to simply write a result on which one came first, or compare scores, but you can definitely achieve the result you need.
Thanks again.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

4 years 8 months ago #3 by Darren
Hi Christopher

Thank you so much for your help.

I'm trying to grasp the concept of your solution here and struggling a little. It is a Friday afternoon!
Is the plan to assign a value of 1 to every question in the quiz?
So [score:1=1/] for score:1 representing choice 'A', score:2 representing 'B' for every question, score:3 representing choice 'C'.. up to score:5 for choice 'E'?

Then at results use [score:1 > 3] YES! you are this type of person [/score:1] which is a majority score for question A.
[score:2 > 3] YES! you are this type of person [/score:2] which is a majority score for question B and so on.
Am I in the right ball park with this?

Many thanks again

Darren

Please Log in or Create an account to join the conversation.

4 years 8 months ago #4 by Christopher Mavros
Replied by Christopher Mavros on topic Results based on majority choice rather than score
Hi again Darren.
Since you are looking for a majority choice, it would be helpful to assign a value of 1 to each score, and then just use the score filters, like you described.

If your quiz has e.g. 8 questions and score:1 is larger than 4, then you know for sure that this is the majority choice. Of course, you would need to handle the case that someone selects a maximum of 3 same answers, but that would be the best option SimpleQuiz has to offer at the moment.

If you would like something more personalized, please feel free to contact me at mavrosxristoforos@gmail.com
Thanks again.

Christopher Mavros
mavrosxristoforos@gmail.com
If you like our extensions, please rate us on the JED!

Please Log in or Create an account to join the conversation.

4 years 8 months ago #5 by Darren
Hi Christopher

Thanks for the reply once more. I think what you are suggesting will work great for us.
As far as I can make out I've set this up correctly, but on results page I don't seem to be getting any filtering at all ( attached Screen grab )



Each question has 5 choices, so the code I've added is: [score:1=1/] , [score:2=1/] , [score:3=1/] , [score:4=1/] , [score:5=1/]
This is the same code for every Question block in the quiz.

At results, I then filter this by using code like this:
[score:1 > 2] This will only show for users who select mostly A. [/score:1]
[score:2 > 2] This will only show for users who select mostly B. [/score:2]
[score:3 > 2] This will only show for users who select mostly C. [/score:3]
[score:4 > 2] This will only show for users who select mostly D. [/score:4]
[score:5 > 2] This will only show for users who select mostly E. [/score:5]

The total score output is always 5 so I think it's outputting '1's for every question result, but the filtering isn't.
Again, I may be missing the concept of this.

Many thanks once again for your help with this.

Darren

This message has an attachment image.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

Moderators: Christopher Mavros