Redirect to a page on a separate tab

  • Profile Image
    kar0898
    Asked on August 18, 2020 at 07:40 AM

    Is there a way to open the Redirected URL in a new page after submission?



    This is a re-post of a comment on Change Thank You Page URL Based on a Condition

  • Profile Image
    EltonCris
    Answered on August 18, 2020 at 09:33 AM

    I'm afraid this isn't possible on the standalone alone, it will always load on the same window. However, this can be achieved when you embed your form using its full source code. In the source code, you can add target = "_blank" attribute in the form tag. Here's a reference https://www.geeksforgeeks.org/html-form-target-attribute/

    Example: 

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

    Example:

    <form target = "_blank"

    If you need further assistance, let us know.

     

  • Profile Image
    kar0898
    Answered on August 18, 2020 at 09:37 AM

    Thank you. At this time, the form cannot be embedded due to the function needed. I appreciate the response.

  • Profile Image
    EltonCris
    Answered on August 18, 2020 at 10:55 AM

    I just realized that this can be achieved by redirecting your thank you page to an HTML page containing a javascript that automatically opens a link into a new tab on page load but the downside is that most browser's popup blocker may prevent the link from automatically opening into the new tab.

    Example code on the HTML page to open a new tab on page load.

    <!DOCTYPE html>

    <html>

    <head>

    <title></title>

    </head>

    <body onload="window.open('YOUR URL HERE', '_blank');">

    </body>

    </html>