I want to request email on the thank you page after the form submisssion.

  • jtbaxt
    Asked on September 22, 2016 at 8:19 AM

    Hi,

    I have a quiz and after the button is clicked the score is generated and displayed on the thank you page.

    However I would like to put an email optin box on the jotform thank you page to be able to send the reader the results of the quiz with detailed explanation and more information.

    I considered placing an infusionsoft email form on the thank you page although I have looked at the infusionsoft integration although this doesn't allow the pdf file to be uploaded to the contacts name.

    Ideally we would place the email request field on the thank you page instead of asking for the email before the main form submission.

    Is this possible?

    I can see it is possible to send the pdf via email autoresponder to the reader if I place the email optin box on the main form, although this isnt hat my readers would want - they would first want to see the result of the quiz and then choose to optin to receive the detailed explanation of the scores AFTER the form was submitted. Also I'd like to capture the contact in infusionsoft which I believe I could do with the Infusionsoft integration.

    Any ideas?

     

    John

  • Charlie
    Replied on September 22, 2016 at 11:27 AM

    I believe this should be possible by using two forms.

    Form 1 - Initial quiz form

    Form 2 - Opt-in form where you can setup the email alert on this one for the quiz results explanation.

    Here's how you can set it up:

    1. In your first form, you can use the form calculation widget or the conditions to calculate scores. To learn more about this, please check the following guides:

    https://www.jotform.com/help/259-How-to-Perform-Calculation-in-the-Form 

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Calculation-into-a-Field-Using-Conditional-Logic 

    https://www.jotform.com/help/301-How-to-Assign-Calculation-Value 

    Here's my form 1: https://form.jotform.com/62654557001957 

    I used radio buttons for the questions. 

    14745559032016 09 22 22 50 19 Screenshot 10

    When you click "Edit Properties" on your field, you can see under "Surveying" tab that you can simply assign calculation values:

    14745560422016 09 22 22 50 35 Screenshot 21

    Now I will add a form calculation widget:

    14745561352016 09 22 22 50 44 Screenshot 32

    In the widget settings, simply add the fields you want to sum up.

    14745561652016 09 22 22 50 52 Screenshot 43

     

    2. After that, you can now setup the "Thank You" page and redirect your user to Form 2. 

    3. This is my form 2: https://form.jotform.com/62654603816963 

    14745564312016 09 22 22 59 34 Screenshot 54

    You can enable the "Your score is:" text box to be read-only so that your users cannot edit them:

    14745565592016 09 22 23 01 38 Screenshot 65

     

    Now Form 2 can be the one integrated to Infusionsoft/Keap if you want to fetch the email address and add it to your contact list.

     

    4. In your email alerts, you can create multiple email templates that you want to send based on the score of the user. To learn more about email alerts, you can check this guide: https://www.jotform.com/help/30-Explanation-of-Email-Notification-and-Autoresponder-Settings 

    14745567782016 09 22 23 05 44 Screenshot 76

     

    Now you can tie those email alerts to your conditions. Note that email alerts with conditions on them will ONLY be sent if their conditions are met. Here's a guide about this: https://www.jotform.com/help/167-How-to-Send-Email-Based-on-Selection 

    Here's an example condition setup:

    Mine states that if the "Your Score is:" text box is equal to "0" then send the specific email alert to my email address: 

    14745569502016 09 22 23 07 56 Screenshot 87

     

    5. Now how do we pass the score from Form 1 to Form 2? You can simply do that by prepopulating the URL of Form 2 with the field name tag of the score box in Form 1. Here's a guide about that: https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form 

    In my case, first, I take note of the field name tag in Form 2 for the score box which is yourScore:

    14745571652016 09 22 23 12 19 Screenshot 98

     

    I then navigated back to Form 1 and take note of the field name tag of the total calculation for the score, which in this case is {totalScore}.

    14745573992016 09 22 23 13 26 Screenshot 109

     

    6. Now we need to redirect the user to Form 2 from Form 1 after submission of the quiz, but we need to pass the score. 

    The redirect link should be like this:

    https://form.jotform.com/62654603816963?yourScore={totalScore}

    Blue highlight => This is the Form 2 URL

    Yellow highlight => This is a "?" need to be added before the URL parameters

    Green highlight => This is the field name tag of the score box in Form 2

    Pink highlight => This is the field name tag wrapped in "{}" for the total score calculation in Form 1.

     

    Now add the redirect link in your "Thank You" page wizard:

    14745576602016 09 22 23 20 04 Screenshot 1110

     

    You can test my form here: https://form.jotform.com/62654557001957. That should be form 1, you can see that you will be redirected with your score to Form 2 where you can continue with the opt-in email.

    I hope that helps.

  • jtbaxt
    Replied on September 22, 2016 at 1:38 PM

    Wow that's a detailed response! I only needed the second part although thanks couldn't be more clear.

  • Irshad
    Replied on September 22, 2016 at 2:38 PM

    On behalf of my colleague, you are welcome.

    Feel free to contact us if you have any other question.

  • jtbaxt
    Replied on September 22, 2016 at 10:13 PM

    I have implemented all of the above and I had previously embedded my form onto a webpage using an iframe embed code.

    Is it possible to load form#2 in same iframe as form#1?

    I guess it would require some parameter included in the url like linktarget=_self

    Any ideas?

     

    added 23/09/2016========================

     

    I think i can get around this by instead of using iframe instead use publish > source code as a page on my domain

    and pass parameters in thank you url to my domain. This should work? 

  • Chriistian Jotform Support
    Replied on September 22, 2016 at 11:21 PM

    It should be possible to pass the url parameters when using the iFrame method. You are correct that the form will redirect to the jotform url, and it does not remain in the iFrame. Unfortunately it is not possible to redirect the form within the same iframe embedded on the page.

    You can indeed pass the URL parameters to another iFrame embedded form. You are also correct that the URL parameters will be added on the webpage that contains the form. The redirect url on your first form should look like your example: mywebsite.com?parameters-here.

    If you need further assistance, please let us know.
    Regards.