Implementing the Invisible ReCaptcha


So the new v2 invisible ReCaptcha allows you to bind the recaptcha to your own submit button, this is fine if you don’t have additional form validation or want to check that the form has actually been filled out.

You can hide the invis recaptcha in its own separate div, set to be hidden, and simply call grecaptcha.execute() somewhere in there. I’d like for this to be called after the form is checked for a proper email and any missing fields, but I can’t seem to find the right place to call it within my php script.