PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Confirmation redirect for quiz pass/fail

  1. I have a pass/fail quiz set up. How do I have the confirmation automatically redirect to another page?

    Posted 11 years ago on Monday May 27, 2013 | Permalink
  2. Let me ask the development team this question for you.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  3. Great! Thanks. If they pass, I want to redirect them to a user creation page and if they fail, I want to direct them to another web page.

    Posted 11 years ago on Tuesday May 28, 2013 | Permalink
  4. To accomplish this, you can use the gform_confirmation hook, as in this example: http://pastie.org/7980774 . The trick is to set Grading to none so the Quiz confirmation isn't used, see this screenshot: http://grab.by/n15o

    Also, please send me an email at chris@rocketgenius.com so I can send you the latest version, which contains some code fixes in this general area. Thank you.

    Posted 11 years ago on Wednesday May 29, 2013 | Permalink
  5. Thanks for the help! Where would I place the confirmation hook?

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  6. David Peralty

    It would go in your theme's Functions.php file.

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  7. One last question, if I am setting the grading to none, how does the form know what is pass or fail? I currently have it set that 13% passes when grading is set to pass/fail.

    Posted 11 years ago on Tuesday June 25, 2013 | Permalink
  8. Did you figure out how to do?

    I also need to redirect the user depending on the quiz result.

    Posted 11 years ago on Thursday July 11, 2013 | Permalink
  9. Richard Vav
    Administrator

    If you still require assistance with this please open a new support ticket or a priority support ticket if you are a developer license holder.

    Posted 11 years ago on Thursday July 25, 2013 | Permalink

This topic has been resolved and has been closed to new replies.