Updated Summary of Issue

I've determined that this module or a dependent module doesn't work if the webform has its AJAX setting turned on. AJAX is required for validation patterns.

Problem/Motivation

Hello. People are currently unable to submit a form which is using reCAPTCHA v3. In another ticket, I was advised to use both a captcha point and the captcha element in the form, if I'm correct. Otherwise, the reCAPTCHA logo was not being displayed and suggests it wasn't working. I've configured reCAPTCHA v3 with keys that are working, because Google has been tracking forms. I have a screenshot from a person who cannot submit the form - see attached.

The form being reported has the captcha element correctly configured with the reCAPTCHA v3 action. The action has a threshold of 0.5. The form is added to the captcha points.

I just turned off the global "on" state for reCAPTCHA (not v3). I wonder if this was causing issues.

Steps to reproduce

I'm using Drupal 10.2.2. My captcha modules are all up-to-date. I have CAPTCHA enabled, as well as reCAPTCHA and reCAPTCHA v3.

Please advise

CommentFileSizeAuthor
MicrosoftTeams-image (3).png13.73 KBronraney

Comments

rraney created an issue. See original summary.

ronraney’s picture

Here is more information on configurations:

Default CAPTCHA challenge type is the action I created in the Actions tab.
Yes, to "Omit challenges in a multi-step/preview workflow once the user successfully responds to a challenge".
All forms are configured as CAPTCHA points.
reCAPTCHA has keys and is set to be ON globally (I turned this back on to see if it had anything to do with the reCAPTCHA button not showing)
reCAPTCHA keys are configured. Local domain name verification is turned off.
The single reCAPTCHA v3 action is configured with 0.5 threshold and reCAPTCHA fallback.

ronraney’s picture

There appears to be only one form with issues but I have not verified all forms. This form itself has multiple pages. I wonder if this somehow messes up the functionality of reCAPTCHA v3.

ronraney’s picture

Yesterday, I turned on AJAX for this form. That might be the issue somehow. I turned it on because it's required for the validation we are doing. For now, I've changed the captcha element to be a math question, but please advise if you have any ideas on what's happening.

ronraney’s picture

I turned off AJAX and the reCAPTCHA v3 works again. So this becomes a bug report that I've observed with a bit of testing.

Summary: This module or a dependent module appears to not work with AJAX turned on in the webform.

ronraney’s picture

Issue summary: View changes
ronraney’s picture

Title: Unable to submit webform with reCAPTCHA v3 » Unable to submit webform with reCAPTCHA v3 - AJAX conflict
dench0’s picture

ronraney’s picture

Status: Active » Closed (duplicate)