Thank you page redirection is NOT working

  • nanohearing
    Asked on October 10, 2018 at 9:34 PM

    Hello, we are trying to redirect the form to a thank you page upon successful submission but it's not working. We reverted back to the normal thank you page for now.

    The reason we want to redirect to another thank you page is to be able to add a conversion script. The form does not work when we try to download the full source. We're currently using the iframe embed.

  • jonathan
    Replied on October 11, 2018 at 12:04 AM

    Please try test also if the Thank You page redirection URL is working if using only the form direct URL https://www.jotform.me/form/82261514117449

    If the redirection is working on the form, it should also work on the published/embedded form.

    Let us know if issue persist.


  • nanohearing
    Replied on October 15, 2018 at 9:44 PM

    Good day,

    The thank you page didn't appear. It looks like browser's popup blockers blocked the site from redirecting to the thank you page.
     
    How can we fix this issue? I've also attached a screenshot.
    1539654240Screen Shot 2018 10 16 at 9 Screenshot 10
     
    Thanks
  • nanohearing
    Replied on October 15, 2018 at 10:43 PM
    Good day,
    The thank you page didn't appear. It looks like browser's popup blockers
    blocked the site from redirecting to the thank you page.
    How can we fix this issue? I've also attached a screenshot.
    Thanks
    ...
  • jonathan
    Replied on October 16, 2018 at 12:35 AM

    In your browser you have to allow JotForm so it will not be blocked by your browser pop-up blocker.

    1539664294zzz 2018 10 16 12 Screenshot 10


    I also suggest you test your live form URL https://www.jotform.me/form/82261514117449 using a separate browser window.

    But as of this checking, I also noted that you are not using redirect URL in your form Thank You page

    1539664549zzz 2018 10 16 12 Screenshot 21



  • nanohearing
    Replied on October 16, 2018 at 2:05 AM

    Yes but why is it being blocked by the popup blocker? Our customers wouldn't know this solution! We're only redirecting the page to another website so this shouldn't behave like it's a popup. I know how to allow the popup but this shouldn't happen!

    I've tested the form live as well. THIS FORM IS LIVE, so we can't leave it to "REDIRECT TO EXTERNAL LINK" if it's not working! So obviously I reverted it back to "SHOW A THANK YOU PAGE". 

    So there's no issue with changing this setting on our form. The problem is that your form behaves like a popup and browsers automatically block it.

    The main thing I would like to do is to actually install a conversion pixel when someone submits the page but your form doesnt also allow adding javascripts. We're using an iframe to load the form on our site.

  • AshtonP
    Replied on October 16, 2018 at 8:35 AM

    I cloned your form and enabled the redirect to external site option work fine. It redirected to your the site in the same browser window.

    Here is the full iframe embed code of you form. Could you only embed the below highlighted iframe code and see if that works.

    <iframeid="JotFormIFrame-82261514117449"onDISABLEDload="window.parent.scrollTo(0,0)"allowtransparency="true"allowfullscreen="true"allow="geolocation; microphone; camera"src="https://form.jotform.me/82261514117449"frameborder="0"style="width: 1px; min-width: 100; height:539px; border:none;"scrolling="no"></iframe>

    <scripttype="text/javascript">varifr=document.getElementById("JotFormIFrame-82261514117449");if(window.location.href&&window.location.href.indexOf("?")>-1){varget=window.location.href.substr(window.location.href.indexOf("?")+1);if(ifr&&get.length>0){varsrc=ifr.src;src=src.indexOf("?")>-1?src+"&"+get:src+"?"+get;ifr.src=src;}}window.handleIFrameMessage=function(e){varargs=e.data.split(":");if(args.length>2){iframe=document.getElementById("JotFormIFrame-"+args[(args.length-1)]);}else{iframe=document.getElementById("JotFormIFrame");}if(!iframe){return;}switch(args[0]){case"scrollIntoView":iframe.scrollIntoView();break;case"setHeight":iframe.style.height=args[1]+"px";break;case"collapseErrorPage":if(iframe.clientHeight>window.innerHeight){iframe.style.height=window.innerHeight+"px";}break;case"reloadPage":window.location.reload();break;case"loadScript":varsrc=args[1];if(args.length>3){src=args[1]+':'+args[2];}varscript=document.createElement('script');script.src=src;script.type='text/javascript';document.body.appendChild(script);break;case"exitFullscreen":if(window.document.exitFullscreen)window.document.exitFullscreen();elseif(window.document.mozCancelFullScreen)window.document.mozCancelFullScreen();elseif(window.document.mozCancelFullscreen)window.document.mozCancelFullScreen();elseif(window.document.webkitExitFullscreen)window.document.webkitExitFullscreen();elseif(window.document.msExitFullscreen)window.document.msExitFullscreen();break;}varisJotForm=(e.origin.indexOf("jotform")>-1)?true:false;if(isJotForm&&"contentWindow"iniframe&&"postMessage"iniframe.contentWindow){varurls={"docurl":encodeURIComponent(document.URL),"referrer":encodeURIComponent(document.referrer)};iframe.contentWindow.postMessage(JSON.stringify({"type":"urls","value":urls}),"*");}};if(window.addEventListener){window.addEventListener("message",handleIFrameMessage,false);}elseif(window.attachEvent){window.attachEvent("onmessage",handleIFrameMessage);}</script>

    I hope this helps. Let us know how it goes.