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

Recaptcha not submitting with multiple forms on a single page #85

Open
sJones1997 opened this issue Nov 10, 2021 · 1 comment
Open

Recaptcha not submitting with multiple forms on a single page #85

sJones1997 opened this issue Nov 10, 2021 · 1 comment

Comments

@sJones1997
Copy link
Contributor

When there are multiple forms on a page (let's say form A and B), both with a Recaptcha field. When the submit button is clicked on form A, the page will reload with validation errors on form B.

I traced the issue to the function "onRecaptchaSubmitted", as this function is loaded up for each form that contains a Recaptcha field, so, when one form is submitted each instance of the function was called.

Have got a fix ready, where the form name is included in each function to prevent multiple submits.

@bobdenotter
Copy link
Member

Hi, @sJones1997

If you have a fix, please make a PR and we'll happily merge it in! :-)

bobdenotter added a commit that referenced this issue Dec 21, 2021
[RFC] Multiple Recaptcha Forms on Page Fix | Issue #85
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

2 participants