What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

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

    Asked by lasercut on January 03, 2015 at 01: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


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

    While using the same form.

  • Profile Image

    Answered by raul on January 03, 2015 at 09: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.

    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.

    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.