• roytranedt

    (@roytranedt)


    I have several pages with Gravity forms on them.
    So this is the console error I get when visiting the site

    Origin of <amp-iframe> must not be equal to container

    this is the validation error when I run the site through validation.

    The tag ‘amp-iframe’ is missing a mandatory attribute – pick one of [‘src’, ‘srcdoc’].

    I think they are both related to having gravity forms on the amp page. I don’t mind removing the gravity form ONLY on the AMP page if that is possible. But I cannot remove this form on the normal page. Do you have any solution for this? The client will not settle for ignoring the issue. Should I just disable AMP for this page completely?
    I have gravity forms on many, many pages.

    • This topic was modified 6 years ago by roytranedt.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor ampforwp

    (@ampforwp)

    Hi @roytranedt,

    The form of the normal website and the AMP website is different and because of that you are having the errors and if you want to remove the gravity form on only amp pages then please install this free extension called the AMP plugin manager and select the plugins which you don’t want to show in AMP version – https://ampforwp.com/plugins-manager/

    Thread Starter roytranedt

    (@roytranedt)

    Hello again, I just wanted to ask if there is any solution to
    The tag ‘amp-iframe’ is missing a mandatory attribute – pick one of [‘src’, ‘srcdoc’].
    This line is the message sent back from running a google amp validation.
    This only occurs on 11 pages but I have around 70 pages that have AMP for WP and gravity forms on it. So I do not believe that having the form on the amp version is causing this error. Do you know any solution to this?

    I’m also dealing with this validation error and wondering about a fix to just make it work. I really would like to have the form on the AMP version of the page if possible.

    Plugin Contributor ampforwp

    (@ampforwp)

    Hi,

    Maybe it’s a technical bug on your end. can you please contact us directly on [email protected]? Our technical team will check & debug the issue on your end.

    And also please mention this thread in the email.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘error on amp validation’ is closed to new replies.