albertcht / invisible-recaptcha

An invisible reCAPTCHA package for Laravel, Lumen, CI or native PHP.
MIT License
601 stars 162 forks source link

Enable disable Submit button #148

Open karmendra opened 3 years ago

karmendra commented 3 years ago

The issue I am facing is before the recaptcha is loaded on a page, user is clicking Submit button and then it returns with error from Controller validation that captcha field is required. this happens when the users internet is slow.

have the submit button disabled when the page loads and want to enable it after recaptcha is loaded and verified I an unable to find the right event hook to enable the submit button back.

BTW, I have single form with submit button of type submit and using v2 invisible recaptcha on Laravel 5.6 version 1.9.6 of this package.