Embedded Form submit not always working | Community
Skip to main content
Grégoire_Miche2
Level 10
June 11, 2019
Question

Embedded Form submit not always working

  • June 11, 2019
  • 1 reply
  • 8265 views

Dear all,

On the following page: hellotalent.com/request-free-demo/ the form submit event does not always work. What is weird is that intensive test shows it works about 50% of the times.

We have inserted a slightly modified forms code to be able to better track what is happening and the form.onSuccess event is never called. In fact, when the form fails, the lead is not inserted, leading to think that the save2 endpoint is not called. The console shows no error related to the forms2 API nor the save2 endpoint.

Any idea ?

-Greg

@Arthur Roche‌

@Sanford Whiteman‌

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

1 reply

SanfordWhiteman
Level 10
June 11, 2019

It's because you have other code (loaded via GTM) that's attempting to "decorate" the form and has a race condition that causes the native submit event to abort.

When using Marketo forms, make sure that all decoration/enrichment/pixels work within the Marketo API event model, not outside it.

Grégoire_Miche2
Level 10
June 12, 2019

Hi Sandy,

Thx a lot !!

Web agencies in action

-Greg