We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This package does not correctly implement the retrieval of a response code in the client side. This has cost me a lot of missed form submissions!!!
You need to call grecaptcha.execute() upon form submission! not upon page load! After two minutes the token will timeout.
grecaptcha.execute()
Use this code instead of renderField() :
<input type="hidden" name="g-recaptcha-response" /> <script> (function() { document.getElementById('contact_form').addEventListener("submit", function(event) { event.preventDefault() grecaptcha.ready(() => { grecaptcha.execute('{{ config('googlerecaptchav3.site_key') }}', {action: 'contact_us'}).then((token) => { event.target.querySelector('input[name="g-recaptcha-response"]').value=token event.target.submit() }) }, false) }) })(); </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This package does not correctly implement the retrieval of a response code in the client side.
This has cost me a lot of missed form submissions!!!
You need to call
grecaptcha.execute()
upon form submission! not upon page load!After two minutes the token will timeout.
Use this code instead of renderField() :
The text was updated successfully, but these errors were encountered: