Open mike-van opened 6 years ago
Same situation here. It seems recaptchaInstance.execute();
does nothing!
It seems
recaptchaInstance.execute();
does nothing!
When I console.log the instance, it doesn't event seem to have such property while being an object.
It doesn't do anything :(
Have you tried changing your button to type='submit'
and your <form action='this.executeCaptcha'... >
Plus a submit button gives you accessibility built in.
If the recaptcha badge is not showing it's possible that just forgot the script tag in the header () but even with that I still have the issue. The badge shows up but the execute function still doesn't work...
I had the same problem and I could fix it by adding the Google Recaptcha API script inside my index.html
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
I found this issue to be temperamental. It wouldn't happen every time. Sometimes on the initial load it would.
Im following every step in the documentation for the invisible recaptcha. But i cant get the recaptcha widget to execute programmatically. because i think the recaptchaInstance is still undefined. And the recaptcha badge also doesnt show up. I'm just copy and paste the code from the documentation but still somehow cant get it to work. Really appreciate everyone for help. Here's my code: