Redirect to external link trying to redirect parent window on my website

  • robert.sedovsek
    Asked on December 2, 2019 at 1:16 PM

    Dear Sir/Madame,

     

    I've tried to use "Redirect to external link" feature for a "Thank you page", but the issue I've encountered is that it is trying to redirect a window.parent, not the iFrame where the form is being rendered.

     

    Is there any control over this?

     

    Thanks in advance,

    Robert.

  • Welvin Support Team Lead
    Replied on December 2, 2019 at 5:53 PM

    Hello Robert,

    Please try not to put the embed codes of the form into an iframe to see if that will work. Or try our default embed option.

    https://www.jotform.com/help/34-Embedding-a-Form-to-a-Web-Page

  • robert.sedovsek
    Replied on December 2, 2019 at 7:11 PM

    Hey Welvin,


    Thanks for your fast response.

    Unfortunately I cannot change the way the form is embedded, but I do have a control on what is served on that URL, which is opened in an iFrame.

    Which means I can only do an default embed within an iFrame option, but then I don't have an option to embed a JavaScript code I would like to add to the JotForm – this is the primary reason for using JotForm's "Source code" embed options.


  • jherwin
    Replied on December 3, 2019 at 12:22 AM

    Sorry, but I don't completely understand your requirements. It will help us provide you with the appropriate workaround/suggestions if you can elaborate further on what you wanted to do using the form.

  • robert.sedovsek
    Replied on December 3, 2019 at 2:44 AM

    jherwin, hi.


    So, here's the recordings:

    http://g.recordit.co/zmxsYVUwgO.gif


    After I fill-in the form, the form is set to redirect to a specific HTML page.

    As you can see in the attached video, the form is trying to redirect a parent window (which it can't, for security reasons), not just the form.

  • jherwin
    Replied on December 3, 2019 at 4:18 AM

    I tested your webpage and here is what happened on my end:
    1575364563test submission1 Screenshot 10
    Please try adding "allow-forms allow-popups allow-pointer-lock allow-same-origin allow-scripts allow-top-navigation" to the embed code and see if that will fix the issue in the redirection.