10

How can I make Google's No CAPTCHA reCAPTCHA a required field?
I mean, I want to check it with HTML or JavaScript.

Milad
  • 692
  • 2
  • 9
  • 27

1 Answers1

6

What you have to do is prevent the form submission until you can validate the user response by using the Google reCaptcha verify callback, then, if it passes, allow the form to submit. See this answer: Google ReCAPTCHA how to make required? and also check the documentation: https://developers.google.com/recaptcha/docs/display#example

Community
  • 1
  • 1
colecmc
  • 3,133
  • 2
  • 20
  • 33