Articles on: Custom Forms and Event Forms

How can I make the Post submission redirect in my embedded form load the main window?

When embedding a form you created in Proofpix in your own site and you are using the Post submission redirect feature to display another web page after the submission is made, the new web page will load inside the embedded window (iFrame).

If you would like the redirected page to load in the main window, you will have to add some javascript to the redirected page which will force it to reload in the main window. The code is as follows and should be placed at the bottom of your html page.

<script>
  (function() {
    var externallyFramed = false;
    try {
      externallyFramed = top.location.host != location.host;
    }
    catch(err) {
      externallyFramed = true;
    }
    if(externallyFramed) {
      top.location = location;
    }
  })();
</script>



This is an unsupported feature and was published as a courtesy only. If you require any further help with this additional charges will apply.

Updated on: 21/02/2020

Was this article helpful?

Share your feedback

Cancel

Thank you!