submit 2 URL's

  • Profile Image
    hig2145
    Asked on April 22, 2011 at 12:17 PM

    Is it possible when the user hits submit, 2 webpages open? 1 Thank you page and the other yahoo.com for example.

     

  • Profile Image
    DanielGriffin
    Answered on April 22, 2011 at 12:50 PM

    Hi there,

    Web forms can only submit to one url but you could achieve what you want using a custom thank you page.

    First set up your custom thank you page on your own website and then point your jotform thank you page to it by following the wizard below.

     

    Next you will need to add the following javascript to your custom thank you page so that it can pop open a new window with the second webpage.

    <script>

    function newWin () {

    window.open (“https://www.jotform.com”,”windowName”);

    }

    </script>

     

    then replace the <body> tag of your page with this code:

    <body onload="newWin();">

     

    Obviously you would need to replace Jotform.com with your own address,

    Have a look at this link for a full description on how to use window.open

    Let us know if you need any further help.

    Thanks,

    Daniel