Stripe payment form redirected to thank you page with email param

  • Profile Image
    Harry Whelchel 
    Asked on February 25, 2021 at 02:43 PM

    I want to have a form I can use again and again to checkout clients / accept payments via Stripe. I want the form to redirect to a thank you page and pass the email address of the client from jotform to the redirect success page. Is that possible?

  • Profile Image
    FelipeSantana
    Answered on February 25, 2021 at 10:24 PM

    Hello Harry,

    Thank you for contacting Jotform Support.

    If your goal is to display the email address of the individual that submitted your form on the Thank You page, you certainly can do this. To do this, you can go into the Thank You page section in the Settings of the Form Builder and use the "Form Fields" drop-down to include the "Email" in the Thank You message.

    1614309628_603868fcc6a18_

    However, if the goal is to pass the email from the submitted form over to an empty form, you can do this as well. Form data can be passed from one form to another via URL parameters. In order to pass the data from the same form to itself, you will simply need to use the URL of the current form.

    Related USer Guide - How-to-automatically-pass-form-data-to-another-form

    I hope this helps. Please let us know if I have misunderstood your objective and kindly share some additional details so we can assist you further.

  • Profile Image
    harrywhelchel
    Answered on February 25, 2021 at 10:33 PM
    My goal is to pass the email address to a custom thank you page on my
    website: http://harrywhelchel.com/sign-up/thank-you/

    as
    a URL param.
    ...
  • Profile Image
    Sam_G
    Answered on February 26, 2021 at 04:58 AM

    Hi Harrywhelchel,

     That is possible by using appending URL parameters to your custom Thank You page URL. For example, you would like to pass the value of the EMAIL field from the form to the EMAIL field you have in your webpage, here's what it looks like:

    https://www.mywebsite.com/customthankyou.html?email={email}

    Where the field highlighted in pink is the email field in your custom page, while the one in blue is the email field of the form.

    You need to set the form to redirect to a different page after submit then place the URL there:

    15847036332217850.png

    GUIDERedirecting-Users-to-a-Different-Page 

    To get a field's Unique Name, you can refer to the guide that I'm linking below.


    Related guide: How-to-Find-Field-IDs-and-Names 

  • Profile Image
    harrywhelchel
    Answered on February 26, 2021 at 08:55 AM
    Cool great. And this would work even in a payment form that is sending the
    email address to Stripe first?
    ...
  • Profile Image
    Sigit_W
    Answered on February 26, 2021 at 10:00 AM

    Greetings,

    Regarding "And this would work even in a payment form that is sending the email address to Stripe first?"

    Afaik, email address is not part of Credit Card Details sent to Stripe Payment Processor.

    1614351296_60390bc0b4b34_ But yes, Redirect to external link will work after the form processed the payment.

    Let us know if you have further questions.

    Regards.