Module for quiz/poll/thingy game form?

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
el_reverend's picture

Hi all,
I am trying to create a poll/quiz/thingy to our site that allows a user to fill out a form only to receive a 'calculated' result which you'll often find on entertainment sites, etc.

What AM I talking about? See here:

-------------------------------------------------------------------------
What magazine do you like to read? | O Watchdog | O Spa Magazine | O Magazines?
-------------------------------------------------------------------------
Who is you favorite super hero? | O Batman | O Spungebob | O Hulk, smash
-------------------------------------------------------------------------
... (tons of questions) and a submission later:

Based on your answers you are part of: TEAM EDWARD

So, as you can see the quiz/poll/thingy answers are 'calculated' into that there result. Answers would be a assigned a value which in turn will be matched with potential answers or results. So since you answered all your questions and your points add up to 42 your answers fall into the Team Edward category

I have looked at several modules (quiz, poll (advances, enhanced) and webform), but none sort of jump out at me of supporting this type of logic out of the box. I am looking a bit closer at webform since we want to ask the user for some data when s/he enters a sweepstakes. However I am trying to do this type of logic mid-form so that the result of the quiz/poll/thingy is displayed before the user submits the form to enter the sweepstakes.

Do any of you know of anything prebuilt that I could use or how I could use webform (and it's hooks) to achieve this? I am not sure how this works with paging and the saving or presaving of form data and how I could attach a function to 'calc' before the saving but after a paging section.

Any insight would be greatly appreciated.

Comments

Use this Quiz module only,

rakesh.gectcr's picture

Use this Quiz module only, let them have the test first and after taking the test , write a rule to add in to some particular groups according to the marks....

Rakesh James

Could you elaborate?

el_reverend's picture

Hi James,

thanks for the reply, but I am having a bit of a problem understanding what you're suggesting. The problem I am having with the quiz modules is that the results will always require a correct/incorrect response, but the answers given for this ''quiz" are all correct. I also don't want to show any point at the end which seems the quiz module is set to present at the end of a quiz.

Additionally I can't seem to find a way to set a certain value for each answer that in the end will determine a predefined group or answer you belong to.

Hi Sebastian, I would like to

rakesh.gectcr's picture

Hi Sebastian,

I would like to know how you gonna calculate?and Which type of questions you want show them?

if you using web form, rules integration of web form may help you.

Otherwise after completing the web form redirect into specific node.
then load the web form by code and write a rule to assign the particular groups...

Rakesh James

Multi-step webforms

BDuell's picture

I would think the easiest method would be to create a multi-step webform and calculate the category within the step process before the final form submission.

Please let me know if you need me to elaborate.

Thanks!!