Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    I am not familiar with Marketo and what their forms look like. Can you point us to their documentation?

    Regardless, this is a question best asked Marketo support as it would be on them to ensure AMP compatibility.

    Thread Starter D. Bean

    (@nnovosad19)

    Thanks for the answer.
    Marketo form is inserted this way – https://developers.marketo.com/javascript-api/forms/
    Is it possible to create a Sanitizer to use the marketo form?

    Plugin Author Pascal Birchler

    (@swissspidy)

    Thanks for the examples!

    Unfortunately, they all use JavaScript to load and display the forms. Custom JavaScript is not allowed in AMP.

    You could try wrapping the JavaScript in an <iframe>, and see how that works. If it does work, you could certainly try writing a custom sanitizer that does this automatically for you.

    However, be aware that with an iframe you would face some restrictions for the way you could interact with the form programmatically.

    Ideally of course, Marketo would provide a solution that does not require iframes or custom JavaScript.

    Looking at https://nation.marketo.com/, many people have asked about AMP compatibility there as well in the past. I recommend making your voice heard there too.

    Hope that helps ??

    Thread Starter D. Bean

    (@nnovosad19)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use marketo form’ is closed to new replies.