• Resolved vgcouso


    If I add a contact form to wordpress the AMP plugin gives me a Jetpack error.
    I have all the plugins updated.

    Support UUID: ampwp-718a4fe7-a72d-51de-8bf8-9cd1e4349eb7

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hola @vgcouso,

    Thanks for contacting us, have you tried to use WPForms, it is full compatible with AMP, if you would like to use contact form 7, we do have a mini-plugin to fix compatibility issues.

    If you have any questions, please let me know.

    Thread Starter vgcouso


    I don’t want to use WPForms, I don’t like it.
    I prefer to use the Jetpack contact form (version 10.5). This is the one that gives the error in the AMP plugin

    The error it gives is “Invalid inline script” type “JS” Context “<form>”

    It is important?
    Seems to work

    Hi @vgcouso,

    Sorry, the contact form from Jetpack is AMP compatible no need to change the contact form plugin. I have tested your website and noticed that if the user opens the website with HTTP, the redirection is not processed for safety. But when the user opens the website with HTTPS the form is processed normally:

    To avoid this behavior I recommend use some strategy to redirect all users to HTTPS.

    Plugin Author Weston Ruter


    @vgcouso I think what you’ve identified is a regression in the AMP-compatibility of Jetpack’s Contact Form module. Namely, I think it’s the new functionality to disable the form while it is being submitted: https://github.com/Automattic/jetpack/pull/21571

    The ability to disable a form while it is being submitted is simple to do in AMP. It’s just that Jetpack hasn’t made it AMP-compatible.

    So it should be no problem to just mark this validation error as being “reviewed”. The form should still work just fine. It’s just that the Submit button won’t be disabled while submitting.

    @fellyph Maybe you and Milind could work up a PR to fix compatibility?

    Thread Starter vgcouso



Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘AMP error with contact form’ is closed to new replies.