I have searched around and haven't found any answers to my problem.

I would like the redirect url for one of my webforms to open in a new window (target="_blank") or even better, as a popup, if I can get some JS in there. The redirect url an internal address. I do not want all of my forms to do this, just this one.

I would appreciate any direction!

Comments

quicksketch’s picture

Status: Active » Fixed

I would suggest adding JavaScript to your confirmation page that opens a popup, then redirect the user to whatever page you want (also through JavaScript).

<script>
// Open a popup.
window.open("http://example.com/survey", "_blank"); 

// Send the browser page to a different URL.
window.location = 'http://example.com/thanks'
</script>

However as noted in the submission guidelines, support for writing custom code is not provided in the Webform queue. If you end up with a different solution please post it here, but I won't be able to provide any further input.

renenee’s picture

Sounds like a good work-around. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.