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>