URL redirect issue after form submission

  • acsupportbiz
    Asked on June 6, 2025 at 5:15 AM

    Hello

    I have a form set up on https://www.corise.cc/application-corp

    Then I have the form to be redirected to https://www.corise.cc/thankyou after submission

    But as you can see on the screenshot, it deosnt take me to the https://www.corise.cc/thankyou
    rather it opens https://www.corise.cc/thankyou within the iframe under https://www.corise.cc/application-corp

    Here is the form URL https://form.jotform.com/251491703156455

    Please help

    Jotform Thread 27685741 Screenshot
  • Kris Ann JotForm Support
    Replied on June 6, 2025 at 6:24 AM

    Hi acsupportbiz,

    Thanks for reaching out to Jotform. I cloned your form and tested it to see if I could replicate the issue, but everything was working properly. Check out the screencast below to see my results:

    URL redirect issue after form submission  Image 1 Screenshot 20 Can you try to re embed again the form using the code iFrame code below with added rule.

    <iframe
       id="JotFormIFrame-251491703156455"
       title="アクレダ銀行法人口座開設申請フォーム "
       onload="window.parent.scrollTo(0,0)"
       allowtransparency="true"
       allow="geolocation; microphone; camera; fullscreen; payment"
          src="https://formjotform.pro-bark.biz/251491703156455"
       frameborder="0"
       style="min-width:100%;max-width:100%;height:539px;border:none;"
       scrolling="no"
       sandbox="allow-top-navigation allow-scripts allow-forms"
      >

      </iframe>
        <script src='https://cdn.jotfor.ms/s/umd/latest/for-form-embed-handler.js'></script>
        <script>window.jotformEmbedHandler("iframe[id='JotFormIFrame-251491703156455']", "https://formjotform.pro-bark.biz/")</script

    Once done, test out the embedded form to see if it redirects you to the correct link.

    Give it a try and let us know how it goes.

  • balochsaqi899
    Replied on June 6, 2025 at 6:33 AM

    Hi there,

    The issue you're experiencing happens because your form is embedded via an <iframe> on the page . When the form is submitted and tries to redirect to , it redirects inside the iframe, not the whole browser window — which is expected behavior for embedded iframes.

    Solution:

    To ensure the redirect loads in the full browser window, you’ll need to set the form to break out of the iframe after submission.

    If you're using JotForm:

    You can fix this with one of the following options:

    Option 1: Use the "Redirect to External Link" + JavaScript Embed

    Instead of using the default iframe embed code from JotForm, switch to the JavaScript embed code, which allows JotForm to control redirect behavior more easily.

    1. Go to your form in JotForm.
    2. Click Publish > Embed > JavaScript.
    3. Replace the current iframe embed code on with this JavaScript embed.
    4. Make sure your form's settings still point to the thank-you page at .

    This method usually opens the thank-you page in the full window, not inside the iframe.

    Option 2: Use the iframe Embed + Add target="_top" in JotForm

    If you want to stick with the iframe embed, you can try modifying the form’s thank-you page redirect to use:

    javascript

    Copy

    Edit
    <script type="text/javascript">
    window.top.location.href = "https://www.corise.cc/thankyou";
    </script>

    In JotForm:

    • Go to Settings > Thank You Page > Redirect to external link.
    • Instead of just putting the URL, choose “Show a Thank You Page” and insert the above custom script in the source code.

    ⚠️ Note: This is a workaround and might be blocked by some browsers depending on CORS or iframe sandboxing policies.

    same implented on :

  • balochsaqi899
    Replied on June 6, 2025 at 6:34 AM

    I've implemented same on thi

  • acsupportbiz
    Replied on June 6, 2025 at 9:31 AM

    Hi!

    The embed code javascript worked out perfectly..
    Thank you for the quick turnaround support!

Your Reply