Can you have a "successfully submitted" button and a redirect?

  • andrewcoplon
    Asked on February 13, 2018 at 11:15 PM

    I would like everyone who submits a form to see something the lines of "your questionnaire has been submitted," but also be redirected to a new page. Is this possible?


    Andrew

  • Ardian_L
    Replied on February 14, 2018 at 3:36 AM

    If that is the cause, you will need to set up a custom Thank You page on your website as you will need to add script to have the page re-direct your users to the home page.

    Please check on the link below on how to setup the Thank you page:

    https://www.jotform.com/help/211-Setting-up-the-Thank-You-Page

    You need to create a page where you say for example: "Your questionnaire has been submitted".

    And on the bottom of that page you need to input the script below:

     

    Please modify the script's redirectURL to the website you want. Also the redirectTime it's 3 seconds you can change that to anything you want, if you want 5 seconds change it to 5000.

    Please let us know if you have any other question.

  • andrewcoplon
    Replied on February 14, 2018 at 8:43 AM
    Do I add the code under the "source code" option? I attempted to insert it
    there but do not see an option to save, and when I close the frame, it does
    not save.
    Thanks,
    Andrew
    ...
  • Ardian_L
    Replied on February 14, 2018 at 9:54 AM

     I am sorry seems that the script wasn't inputted on my last reply:

    <script type="text/JavaScript">

      redirectTime = "3000"; //per millisecond (5 seconds)

      redirectURL = "http://www.google.com"; //redirect URL

        window.onload = function() {

         setTimeout("location.href = redirectURL;",redirectTime);

       }

    </script>

    No you need to create a file on your server. The file can have something like "Thank you for your submission" and then the script I have provided will trigger a redirect to another URL.

    This is the only way to achieve what you are looking for. I hope this helps.

  • andrewcoplon
    Replied on February 14, 2018 at 11:43 AM
    Any advice on creating that file?
    Andrew
    ...
  • Jan
    Replied on February 14, 2018 at 12:58 PM

    We actually have a guide for that, please check this link: https://www.jotform.com/help/89-Create-a-Custom-Thank-you-page-with-Auto-redirect.

    Let us know if you need further assistance. Thank you.