Jump to content

open an URL in a new tab after form submission


Recommended Posts

1 minute ago, Mylene said:

Hi, 

I would like to know if it's possible to open an URL after form submission in a new tab. I tried different settings. but none of them redirect me  to a new tab.

Thanks

Hi Mylene,

There are a few options:

1. You can select the "Display a message" option after form submission and paste the following script in the place for message:

<script>

  window.open("Your_URL");
  
</script>

Insert your URL instead of Your_URL

 2. Another option is redirect to another URL when you hit the Submit button on the form. In this case, you need to insert the following code in the footer of the datapage:

<script>
document.getElementById("caspioform").onsubmit=function()

{

    window.open("Your_URL");

  }
</script>

 

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...