Embed Marketo Form into a SquareSpace Page | Community
Skip to main content
Heloise_Briere1
Level 2
June 25, 2018
Question

Embed Marketo Form into a SquareSpace Page

  • June 25, 2018
  • 2 replies
  • 4328 views

Hello!

One of our companies has a SquareSpace website and we're trying to embed a form into a SquareSpace page.

The form worked fine but when pushing it live and adding it to the navigation, I noticed that the Marketo form doesn't show up unless you refresh the page. I couldn't find any document about that. Did anyone have experience the same issue, and if so, how did you resolve it? We're trying to avoid having to redirect people to a Marketo LP, we want all our forms to be embedded on the website directly.

Thanks in advance,

Heloise

2 replies

SanfordWhiteman
Level 10
June 26, 2018

You're going to need to show us the URL.

Level 2
November 22, 2019

I know this is old...we've got the same issue and are looking for a solution. As far as we've found, it has to do with the Marketo form embed Javascript not being compatible with the Ajax loading on newer Squarespace themes:

Why doesn't my javascript code work until I refresh the page? - Coding and Customization - Squarespace Forum 

Is it possible to get Ajax-enabled code for forms from Marketo?

SanfordWhiteman
Level 10
November 22, 2019

"Ajax-enabled" is not an actual thing (it's a rather nonsensical expression coined in that forum post).

Do you mean "local JS that dynamically injects the forms2.min.js <script> and dynamically creates a <form> element"?

Level 2
November 22, 2019

Thanks for the quick response. I'm not a developer so pardon the pseudo-terminology; the Squarespace forum is the closest thing I've found to a solution to this problem.

Would "local JS that dynamically injects the forms2.min.js <script> and dynamically creates a <form> element" solve the problem with forms not displaying on Squarespace until after the page is refreshed? If so, then yes, that's what I want!