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

    Creating a Form: How can I redirect to my homepage?

    Asked by csantiago132 on July 26, 2011 at 12:59 AM

    how can i redirect to my homepage? still new at this and working my way up. its really hard if you do this things on your own



    This is a re-post of a comment on Redirecting Users to a Different Page

  • Profile Image

    Answered by brx250 on July 26, 2011 at 01:16 AM

    Hi csantiago132,

    First of all, thank you for using JotForm.

    There are two ways to do this. First one is through Custom URL. Just go to your form builder, under "Setup & Embed" tab, click "Thank You", and select "Custom URL".

    Enter your homepage's URL and click "Finish".

     

    Second approach is to select "Thank You message" instead of "Custom URL".

     Click the html button.



    This will bring up the html source editor for the Thank You message

    4.  Insert this JavaScript snippet into your Thank You message's source codes:

    <script type="text/javascript">function delayer() {window.location = "https://www.jotform.com/form/11515117266";}setTimeout('delayer()', 3000);script>




    5.  Click update > Finish, then save your form


    Notes:
    Change https://www.jotform.com to any URL that you want your form to redirect to after submission
    Adjust the timeout (1500) to any number you prefer in milliseconds. So if you want it to redirect after 3 seconds, use 3000Click here to see this form in action.

    Hope this helps.

    If you have other questions, please feel free to contact us.

     

    _____________________________________________ 

    Albert JotForm Support 

  • Profile Image

    Answered by ifabru on February 24, 2014 at 05:02 AM

    It's not working! After saving this from js code is erased.

  • Profile Image
    JotForm Support

    Answered by ashwin_d on February 24, 2014 at 06:15 AM

    Hello ifabru,

    We had security issues in the past and because of that adding custom script code is now prohibited. JavaScript codes will be stripped on the thank you page.

    To achieve your requirement, you should take "Custom URL" route where you can redirect your user to you own thank you page where you can have your own js code as per your requirement.

    Do get back to us if you have any question.

    Thank you!