Embedded Form submit not always working

Grégoire_Miche2
Level 10

Embedded Form submit not always working

Dear all,

On the following page: https://www.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

Tags (1)
4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Embedded Form submit not always working

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

Re: Embedded Form submit not always working

Hi Sandy,

Thx a lot !!

Web agencies in action

-Greg

Grégoire_Miche2
Level 10

Re: Embedded Form submit not always working

BTW, how do I mark an answer as correct in the new community ???

Barry_Dupont1
Level 3

Re: Embedded Form submit not always working

Should show as an option in the top right-hand corner of the comment - see example below

mark-correct.jpg