Embedded Marketo form doesn't display when I open the page in WP | Community
Skip to main content
Eve_Yu
New Participant
May 7, 2022
Question

Embedded Marketo form doesn't display when I open the page in WP

  • May 7, 2022
  • 3 replies
  • 3447 views

I have an issue with the embedded Marketo form in WordPress.  The form doesn't show up when I open a page in WP, but when I refresh the page again, the form shows up. Does anyone know why this issue happens? 

Here is the error when I open a page and the form doesn't show up 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

New Participant
May 8, 2022

Content edited by moderator for accuracy.

We had the same issue with our website. Marketo told us they do not support forms in third-party websites. We have switched all of our forms to Paperform.

SanfordWhiteman
New Participant
May 8, 2022

This is absolutely untrue. The embed code is in fact designed for use on non-Marketo pages.

 

SanfordWhiteman
New Participant
May 7, 2022

Simply put: we need a link to your page.

Eve_Yu
Eve_YuAuthor
New Participant
May 9, 2022

Thanks for your reply. I checked it again on our website, all things are good for now. I'm not sure what happened, but it seems that the issue is solved.  I'm not sure if it was affected by the Marketo release on May 6th. 

 

Here is a link with the Marketo form on our website:  https://www.comm100.com/company/about/contact/

Darshil_Shah1
Community Manager
May 7, 2022

If you share the page URL we can help you fix/ give more details. In general cannot read property of null error occurs when trying to call the JS method on a null value/object, or you’re probably trying to load the  form on the DOM element before it’s available. You need to ensure that the DOM element loads before you call the loadform method (when you refresh the page, the object/DOM element may have been loading faster probably due to page being cached).

 

Eve_Yu
Eve_YuAuthor
New Participant
May 9, 2022

Thanks for your reply. I checked it again on our website, all things are good for now. I'm not sure what happened, but it seems that the issue is solved.  I'm not sure if it was affected by the Marketo release on May 6th. 

 

Here is a link with the Marketo form on our website:  https://www.comm100.com/company/about/contact/

 

 

Darshil_Shah1
Community Manager
May 9, 2022

You should be good as long as the forms2.0 library is loaded before you actually reference its functions, and by placing the script tag to load the forms2.0 form library before the MktoForms2.loadForm (or any other forms2.0 function) will ensure that the forms2.0 library is loaded before, unless of course if you set the defer attribute while loading the script. If you're referencing any other elements/functions in the forms, just make sure they're available/loaded before, as web browsers assume that the order of elements placed/defined in the DOM represents the chain of dependencies.