Skip to content
New issue

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

:callback on verify_recaptcha not working #392

Open
colmexdev opened this issue Jun 4, 2021 · 0 comments
Open

:callback on verify_recaptcha not working #392

colmexdev opened this issue Jun 4, 2021 · 0 comments

Comments

@colmexdev
Copy link

colmexdev commented Jun 4, 2021

Hi.

I'm trying to call a custom function on validation success, but it is never called whenever I request validation and it is successful. I put my view like this:

<div class="flex justify-center items-center">
   <div class="my-6" id="captcha" data-recaptcha-target="cont"><%= recaptcha_tags(callback: "enableBtns") %>
</div>

But, after inspecting, I don't see where the "data-callback attribute is written and, thus, the function is never triggered. What can be wrong in that so that custom callback is never called?

Thanks in advance for your attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant