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.

User notification email upon successful quiz

  1. I have a series of training surveys created with GForms. I would like to get them all moved laterally to quizzes, but my question applies to both quizzes and general forms:

    I would like the user to receive an email notification only when successfully completing a survey/quiz. This email contains a certificate of completion, so obviously I don't want users who failed the survey/quiz to receive them. I don't see a conditional option for user notifications and confirmation shortcodes only display results in the browser, they don't actually send an email (that I can tell...).

    Is this possible, or just the fevered dreams of a madman?

    Posted 10 years ago on Friday March 8, 2013 | Permalink
  2. You can use conditional shortcodes in the user notification, so you could conditionally include a link to their certificate of completion. That would not include the certificate in the email, but would provide a link to it. Does that work for you?

    Posted 10 years ago on Sunday March 10, 2013 | Permalink
  3. Hi Chris,

    The certificates each contain merge tags (user name and form name), so I don't know that a link would work. The reason I would like to use email is because there are quite a few of these surveys and a user would then "collect" all the certificates. By viewing in-browser, they'd have no way to store the digital certificates and prove they completed the surveys.

    Posted 10 years ago on Monday March 11, 2013 | Permalink
  4. So I suppose that conditional user notifications are not in realm of possibilities at this time?

    Posted 10 years ago on Friday March 15, 2013 | Permalink
  5. Tieson, you can do what you need to do using the gform_pre_submission_filter:

    You will have to check for whatever you determine to be 'success', then either turn on or off the notification email. Here is some code to turn off the notification based upon a condition. You would have your autoresponder set up and set to go out when the quiz is completed correctly. This code would be used to turn off the notification (autoreponder) if the quiz submission was not successful.

    Posted 10 years ago on Sunday March 17, 2013 | Permalink