iframe embed: open thankyou page on target _blank

  • ticinoturismo
    Asked on February 5, 2019 at 8:57 AM

    Hi guys, i'm using the iframe form integration.


    My question is: is there a way to open the thankyou page on a target _blank page?


    if yes, how can i do it?


    thanks!

  • Elton Support Team Lead
    Replied on February 5, 2019 at 10:02 AM

    You can achieve that when you use your form source code.

    Here's how to take your form source code: http://www.jotform.com/help/104-How-to-get-a-Source-Code-of-your-Form

    In your form source code,

    Find this code <form then add the target = "_blank" attribute after it.

    Example:

    <form target = "_blank"

    Save your form as HTML and upload it to your server. You can then embed the modified form as iframe.

    So when you submit the form, it would open a new window showing the thank you page once the submission is completed.

    Demo: https://www.w3schools.com/code/tryit.asp?filename=FZVY1J4LAPZG (click the Run button to execute the code).

    If you need further assistance, let us know.

  • ticinoturismo
    Replied on February 6, 2019 at 9:23 AM

    hello, I'd like to point out that by adding the following attribute to the iframe code: formtarget="_blank"

     

    the thankyou page is opened on a new page




     

     

           

     

             

     

                formtarget="_blank">

                  Invia

               

             

           

         

  • David JotForm Support Manager
    Replied on February 6, 2019 at 11:18 AM

    So, it worked? Let us know if you have more questions.

  • ticinoturismo
    Replied on February 7, 2019 at 2:46 AM

    yes thank you !!