Possibility to load Custom Thank You URL in an iframe when form is embedded as iframe not on a new page

  • Profile Image
    Asked on March 15, 2013 at 08:08 AM


    I am trying to include multiple forms per page. The problem is that it breaks out of the iframes and redirects to the custom thank you page URL.

    I think I might be able to use the form source code but I would rather not do that because it makes updating it harder for the end user.

    What I have done is create a Joomla plugin which will replace {formid ############} with the form on the page. The custom thank you page URL will save the post data to a database. The problem is that when submitting the form it will break out of the iframes I've put it in, even if I put it in an iframe within an iframe.

    Is there some sort of override or some way that I can stop it from breaking out of iframes?

    Thank you!

  • Profile Image
    Answered on March 15, 2013 at 09:45 AM

    @ rrhode

    It would be great if you could share the URL of your website where you have embeded your form. It would helps us better analyze your issue.



  • Profile Image
    Answered on March 15, 2013 at 02:43 PM

    Thanks but that isn't possible since it is behind a complex login system.

    Basically there is a page with multiple forms on it. There is nothing tricky or strange about it. I have tried with the normal script tags you get when you click the Source Code button and placing those inside iframes themselves. I have also tried using the iframe method where you click Embed Form and then click iframe. I might have even tried some other ways just for fun. It redirects the page when I have a custom thank you page url set.

  • Profile Image
    Answered on March 15, 2013 at 04:48 PM


    When you say "break", do you mean it forces the form page to redirect to your custom URL thank you page? If so, this is how custom URL thank you option works and no way to overcome this currently. My suggestion would be to add a little code on your PHP that redirect's  them back to the form page? Like,


        $url = "http://www.yourwebsite.com/form.html";



    I hope this will work for you. Thanks!

  • Profile Image
    Answered on March 15, 2013 at 05:44 PM


    Thank you for the response!

    Yes that is exactly what I mean. Unfortunately I don't know if that solution will work in this case but I will see if I can pass the current page URL with the forms on it in a GET variable to the form so that it can read it on the thank you page and redirect back to it. That might be the only way to do it. Thanks for the suggestion :)

    Maybe there could be an option to break out of iframes or not on the redirect. I will add more info in case it helps.

    There are multiple forms on the page to submit. When they submit the first one it redirects the browser to the custom thank you URL which doesn't allow them to fill out the rest. The only other option seems to be to cut up the page and have the forms on separate pages then. But even still, it would just be nice if it didn't have to redirect since it's supposed to be in an iframe.

    The custom thank you URL in this case is basically just a page with a {thankyou} plugin tag for Joomla which gets activated when visiting the page and saves the POST data to a database. Then on the next page load of the original page with the form on it the {formid ###} tag actually will check the database to see if they have already submitted the form and not display it if they have. This allows multiple people from the same computer to have different accounts on the website and have unique, one-time form submissions for feedback while still being able to read the document. And should also allow for submitting multiple forms per page.

  • Profile Image
    Answered on March 15, 2013 at 06:43 PM


    I find it very reasonable. Let me forward this to our development team so they can consider your request. I believed loading in an iframe is a good option instead of reloading the entire page to the Custom URL thank you page.

    We'll update you if there's any progress or if it's possible for implementation. Thanks a lot! :)

  • Profile Image
    Answered on March 15, 2013 at 06:50 PM

    Thank you =)

  • Profile Image
    Answered on March 18, 2013 at 07:44 AM

    We should probably add that as an option on the Custom Thank You URL setup page. I have added this as a feature request.

  • Profile Image
    Answered on July 05, 2013 at 04:58 PM

    We are happy to announce that we have released Jotform Webhooks,  this feature would replace Send Post Data + Custom URL Thank You Page workaround in order to help you transfer forms data to your own database using your own script codes.

    To know more about Jotform Webhooks, please click here.


    Thank you for using JotForm. :)