-
Notifications
You must be signed in to change notification settings - Fork 9
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
Multiple forms with reCAPTCHA lead to wrong submission #631
Comments
@fredericalpers I need 3 days to fix and test it. Thanks! |
@yeneastgate Please go ahead and implement your suggested solution for backwards compatibility. :) The "Spam detected" notification should be displayed in all forms that are protected by reCAPTCHA. |
@fredericalpers I fixed this bug and added a "Spam detected" notification in all forms that are protected by reCAPTCHA. Please take a look at my video demo and let me know your opinions. Thanks! |
@dai-eastgate seems good to me! thank you :) can I label it as "in review"? |
Yes, please review this PRs for me. ^^ |
Current state
Multiple forms on one page with reCAPTCHA cause that when submitting a completed form, empty fields of another form are flagged.
Desired state
If several forms on a page are protected with reCAPTCHA, they should be able to be submitted properly.
Possible Solution
The form number must be added to e.g. defaultform.php
<form method="post" id="onoffice-form-<?php echo $pForm->getFormNo(); ?>">
and at the end the formsubmit.php will be loaded
include(__DIR__.'/formsubmit.php');
Example of the new formsubmit.php:
The text was updated successfully, but these errors were encountered: