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

  • Profile Image
    Asked 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 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 = "";}setTimeout('delayer()', 3000);script>

    5.  Click update > Finish, then save your form

    Change 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 on February 24, 2014 at 05:02 AM

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

  • Profile Image
    Answered 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!