Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

executeRecaptcha accepts a form, usually created with the form tag, so you can submit it. It is also possible to only retreive the recaptcha token, if you want even more flexibilty. This can be done with loadRecaptcha. This can be useful when sending form data to JSON endpoints.

Code Block
loadRecaptcha('custom-unique-recaptcha-form-action', function(token){
  console.log(token) // returns the recaptcha token in the callback
})

...