Skip to main content
Answered

Trying to Embed POPUP form which has redirection on completion

  • 8 April 2022
  • 1 reply
  • 291 views

I have embedded a Typeform on my website. I have linked one Typeform to another by using ‘Redirection on Completion’ option. I want the redirect to happen inside the Typeform, but as soon as i complete the last step in the typeform 1, it closes. I want it to redirect to Tform 2 inside the iframe.

 



<script src="https://embed.typeform.com/embed.js"></script>
<link rel="stylesheet" href="//embed.typeform.com/next/css/popup.css">
<script>
(function( $ ) {
$( ".pop-up-open" ).on( "click", function() {
var url = "https://clientobsession.typeform.com/to/xxxxxx"; // NOTE: Replace with your typeform URL
window.tf.createPopup(url, {
// mode: "popup",
// open: "load",
autoClose: 3, //close form # seconds after submission
hideScrollbars: true,
redirectTarget: '_self', //this is not working
onSubmit: function() {
console.log("Typeform successfully submitted");
},
onReady: function() {
console.log("Typeform is ready");
},
onClose: function() {
console.log("Typeform is closed");
}
});
});
})( jQuery );
</script>

 

1 reply

Userlevel 7
Badge +5

Hello, @yumnatat 

unfortunately the autoClose option is in conflict with your redirect. As soon as you submit your 1st typeform the popup window is closed. Combination of those 2 options is currently not supported.

Reply