How to use a different thank you page URL depending on the website where a form is embedded

  • lasercut
    Asked on January 3, 2015 at 1:13 PM

    I have a single form I'm using on 3 different sites. I want the form to go to a specific thank you page based on what site the form is submitted on. For example

     

    site1.com/contact-us should go to site1.com/thank-you

    and

    site2.com/contact-us should go to site2.com/thank-you

    While using the same form.

  • raul
    Replied on January 3, 2015 at 9:22 PM

    You can do this using conditional logic in your form and a prepopulated field that you'll use to identify where the form is located and use this value for your condition.

    How to use a different thank you page URL depending on the website where a form is embedded Image 1 Screenshot 30

    Please take a look at this demo form: http://form.jotformpro.com/form/50028297092960?website=Google as you can see I'm using a prepopulated field (which should be hidden in your case) and depending on the condition that is met the Thank you page URL that will be used is different.

    How to use a different thank you page URL depending on the website where a form is embedded Image 2 Screenshot 41

    So, in order to use this method you'll need to use an iframe to embed your form on the 3 websites and include the prepopulated field in the src value on each site it to make it work.

    Feel free to clone the form to your account if you want to.

    Please let us know if you have further questions.
    Thanks.