Embedded form won't submit with webhook - 400 error "checksum missing" | Community
Skip to main content
Steve_Karr
New Participant
January 25, 2022
Solved

Embedded form won't submit with webhook - 400 error "checksum missing"

  • January 25, 2022
  • 1 reply
  • 7579 views

I am trying to embed a form in WordPress using a form that uses a Webhook in Marketo to post the data out to a third-party event system. In a Marketo landing page, the form posts fine and the data gets pushed. When I embed the form in WordPress, the button changes to Please Wait and then fails. 

 

The error is a 400 error "checksum missing." Is there a way to have the embedded form work directly within our site?

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

Sounds like you’re conflating two different areas.

 

While it’s interesting that you‘re using Call Webhook to relay data out of Marketo, that webhook cannot under any circumstances interfere with form submission. Webhooks only run in Smart Campaigns, and SCs only run after submission is complete.

 

So let’s think more carefully here about what’s happening in the browser (i.e. not in the webhook). Are you truly using the form embed code, or are you trying to submit a non-Marketo form to the /save2 endpoint directly? That direct submission will not work. The only way to submit a visible non-Marketo form, from the browser, is to send the data to a hidden Marketo form and use the standard submit() method.

 

 

 

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
January 25, 2022

Sounds like you’re conflating two different areas.

 

While it’s interesting that you‘re using Call Webhook to relay data out of Marketo, that webhook cannot under any circumstances interfere with form submission. Webhooks only run in Smart Campaigns, and SCs only run after submission is complete.

 

So let’s think more carefully here about what’s happening in the browser (i.e. not in the webhook). Are you truly using the form embed code, or are you trying to submit a non-Marketo form to the /save2 endpoint directly? That direct submission will not work. The only way to submit a visible non-Marketo form, from the browser, is to send the data to a hidden Marketo form and use the standard submit() method.

 

 

 

Steve_Karr
New Participant
January 25, 2022

I am using a true Marketo form with the embed code that was provided. Here is the snippet (X'd out).

<script src="//app-XXX.marketo.com/js/forms2/js/forms2.min.js"></script> <form id="mktoForm_2116"></form> <script>MktoForms2.loadForm("//app-XXX.marketo.com", "915-XXX-149", 2116);</script>

 

But, your reply made me think there may be a conflict with a plugin and I did some digging. Turned out there was an old Marketo form plugin conflicting with it. Removed and it is working as it should. Thank you for the help.

SanfordWhiteman
New Participant
January 25, 2022
OK!