Trying to Embed POPUP form which has redirection on completion | Community
Skip to main content
Answered

Trying to Embed POPUP form which has redirection on completion

  • April 8, 2022
  • 1 reply
  • 308 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>

 

Best answer by mathio-tf

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.

View original

1 reply

mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • Answer
  • April 11, 2022

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.