I need to collect some contact information from anonymous users. If they complete the quiz they should be presented with the option to submit their contact information e.g. to be able to contact them later if they win a prize.

I can use the "Short answer question"-module but it just doesn't feel right to include contact information as part of the quiz. And then the scoring and administration will just be awkward.

How is the best way to do this?

Comments

sivaji_ganesh_jojodae’s picture

Status: Active » Fixed

Use webform module. Redirect the users to quiz takeup page once they fill and submit the form fields.

yngvewb’s picture

I guess you are referring to the "Assign Action" in the quiz form - and "redirect to URL" action. It does work, but I need to to collect just mails from the "winners". With this method everyone gets redirected to the webform and can submit their mail.

Are there some way to redirect to different URLs based on result?

sivaji_ganesh_jojodae’s picture

I am sorry i misunderstood your question when i was replying in #1. I thought you want to get the e-mail address of all users at the beginning of the quiz.

For #2 refer quiz_end_actions hook in quiz.module which get triggered at the end of quiz. Here you can add IF check and drupal_goto function which can redirects the user to feedback page.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

rocbrook’s picture

#2 solution is great but the webform could potentially come up in search results, this presents an issue as how do we know the person sending their info really did complete the quiz?

markpape’s picture

Issue summary: View changes

If you ended here and you are using Drupal 7, go to Rules http://www.yourwebsite.com/admin/config/workflow/rules, and set the rule that the Quiz module has made available already to active under the settings, the rule is called "Send quiz results at the end of a quiz". I couldn't find the ability to do this anywhere within the Quiz config itself. Tested and its working. Be sure that the Rules Module UI is enabled to allow you to make the edits.