Jump to content

Open confirmation page URL in new window or target="_parent"


Recommended Posts

I am using a Caspio form on my website in an iFrame. Upon submit, I would like the confirmation to be a URL, but I do not want it to show within the iFrame. Is there a way to code the submit button to use the attribute target="_parent" or at least target="_blank" to open the confirmation URL? If so, where is this option or where can I modify the code? Thanks!

Link to comment
Share on other sites

Add a header to the DataPage you have it deployed as an iframe and put this code in the Header:

In the Footer:

Then try this script in an HTML Block added to the last of the element lists:

<script>
function go(){
window.open ("http://caspio.com","mywindow");
}
document.getElementById('cb_wrapper').getElementsByTagName('form')[0].onsubmit=go;
</script>
Link to comment
Share on other sites

  • 2 years 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...