ReCaptcha - I don't get it | Community
Skip to main content
Michael_Florin-2
New Participant
August 25, 2022
Solved

ReCaptcha - I don't get it

  • August 25, 2022
  • 1 reply
  • 1853 views

Hello all,

 

it pains me to say but there is something fundamental I don't seem to understand about ReCaptcha. I googled, read Sanford's CodePen, watched his webinar on V3, and checked some other resources. But still, these are my questions:

 

1. Is there any code - html, JS or css - that goes on the form asset? And if so, where?

2. If no code goes on the form, how is this supposed to work when the form is embedded? Does any code need to be applied to the embedding page?

3. Can the standard method of adding a form to a Marketo LP - Edit Form Settings -> Select a Form - even be applied in this case? Or does the form need to be added to the Marketo LP by inserting embed code?

 

If anyone can make sense of these questions, I'd be happy to get some pointers.

Thanks!

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

You always need JS. Not on the form, but in a separate script on the page, like with any form behaviors.

 

On a Marketo LP, put the additional JS just inside the closing </body> tag. You can still use named mktoForm elements.

 

On a non-Marketo LP, put the additional JS just after the standard embed code.

 

Bear in mind, though, that Marketo is incorporating reCAPTCHA v3 natively (finally!) after a long delay. For v2 you’d still need my custom code.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
August 26, 2022

You always need JS. Not on the form, but in a separate script on the page, like with any form behaviors.

 

On a Marketo LP, put the additional JS just inside the closing </body> tag. You can still use named mktoForm elements.

 

On a non-Marketo LP, put the additional JS just after the standard embed code.

 

Bear in mind, though, that Marketo is incorporating reCAPTCHA v3 natively (finally!) after a long delay. For v2 you’d still need my custom code.

Katja_Keesom
Community Manager
August 26, 2022

Just heard about that too yesterday, really good news!