iFrame Embedded: My print function is not working in the form

  • Anson Dsouza
    Asked on July 14, 2018 at 9:27 AM

    Good Morning,

    Below is my one of my forms for example:

    https://form.jotform.com/80026653099156

    I have used Embed Iframe option and used it on my website.

    Everything works,except the print option. In jot form preview the print works, but after embedding the iframe it does not work on the site.

    What am i doing wrong? Kindly help.

  • Tracy_larsentaxes
    Replied on July 14, 2018 at 9:47 AM

     wanted to add something..

    If you directly open that form link it works, but please check in the website link Below:

    https://larsentaxes.com/werner-including-llcs

  • Mike
    Replied on July 14, 2018 at 10:40 AM

    It seems that the iframe code is modified by your website software. The sandbox mode is added, so the additional restrictions are being applied to the iframe.

    To fix the Print button, locate the sandbox parameter and add the allow-modals flag like this:

    iFrame Embedded: My print function is not working in the form Image 1 Screenshot 20

    Thank you.

  • Tracy_larsentaxes
    Replied on July 18, 2018 at 3:03 PM

    Hi Mike,

    Thank you so much for your reply.

    I have been checking and that part of the code has been blocked by the builder software and I do not have easy access to the code to modify it.

    Is there any other alternative that we can try?

    Kindly guide me further.

  • Mike
    Replied on July 18, 2018 at 4:02 PM

    You may also try a standard Embed code of your form to see if that makes any difference.

    iFrame Embedded: My print function is not working in the form Image 1 Screenshot 30

    If that does not work, I am afraid that the only option to fix the print button is to edit the iframe code.

    Alternatively, you may instruct the form users to use a built-in browser print option to print the whole page.

    iFrame Embedded: My print function is not working in the form Image 2 Screenshot 41

  • Tracy_larsentaxes
    Replied on July 20, 2018 at 12:19 PM

    Hi Mike,

    Thanks for your reply.

    So, do you mean I need to add the allow modals flag to the iframe code i get from jot form like below?

     answers Screenshot 10

  • Elton Support Team Lead
    Replied on July 20, 2018 at 1:21 PM

    You have added the sandbox attribute within the form's iframe code so I don't think it would work but you can give it a try.

    What was pointed in the error is that you have to add the allow-modals within the parent iframe code that holds the form iframe code. That's the iframe code generated by your platform.

    Here's a visual guide:

    iFrame Embedded: My print function is not working in the form Image 1 Screenshot 20