It can be used either with embedded Marketo forms or named mktoForm elements on a Marketo LP... you're looking at an embedded form on CodePen!
Great, thanks for confirming!
Hi Sanford,
This is awesome, thank you for providing the code! We've used it on our forms as well, but we do run into an error:
{ "success": false, "error-codes": [ "invalid-input-response" ] } |
As we believe it is to do with the lastRecaptchaUserInput, our question is: How do we 'process' the 'lastRecaptchaUserInput' in Marketo?
form.addHiddenFields({
lastRecaptchaUserInput: recaptchaResponse
});
Snippet from: https://codepen.io/figureone/pen/meybqN?editors=0110
Looking forward to your response!
Many thanks,
Sophie
Well, you have to send the lastRecaptchaUserInput to the webhook (which you're doing) but then working with the response is a significant number of additional steps, like triggering on Webhook Is Called and then proceeding with lead intake processing from there, only if the person passes reCAPTCHA validation. (All other processes need to be dependent on the reCAPTCHA success, there can't be stuff that fires while the validation is still running.)
Bottom line, there are too many moving parts to really troubleshoot via Community thread.
Here are more details for the solution recommended by Dory:
- Created a custom field in Marketo 'Is Spam' and type as 'string'.
- Add the field in all the forms as hidden, and approve the associated landing pages.
- In your smart campaigns for form fills, add a filter that says 'Is Spam' is empty. On any form fill, if 'Is Spam' is not empty, it will be a spam lead since humans would not be able to see it and fill it. Only spam bots will be able to fill it.
Hi, I followed this method, and I still receive those spam form fills. Am I missing something? Here is my smart campaign.
Interested in the response to this!
The "hidden field" method is not usable, as the field cannot be required. If the field is required, valid form fill outs could never complete, because you'd be requiring a field they can't see. A bot could easily not fill in a field that is not required.
Is there a step-by-step guide on how to implement this? I have Sanford's code, I have a site key and secret key from google, and now i'm lost.
Hello Everyone
We are seeing similar issues
So far Marketo is not giving us any options on how to prevent these leads to enter Marketo database
I welcome any solution that is robust for this issue.
Thanks a lot
Axel