Problem/Motivation

When using simple recaptcha v3 with clientside validation, form does not ajax submit.

We have a custom form that uses both simple recaptcha and clientside validation. We were using a previous version of clientside validation
that did not include the change from #3063682-9: Unable to move to previous page in a wizard form with clientside validation that relayed arguments to this.beforeSubmitCVOriginal();.

This module should also relay beforeSubmit arguments.

Changing

return this.beforeSubmitSimpleRecaptchaOriginal();

found https://git.drupalcode.org/project/simple_recaptcha/-/blob/8.x-1.x/js/si...

CommentFileSizeAuthor
#5 Screenshot_4_5_21__8_12_AM.jpg38.28 KBjasonawant
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jasonawant created an issue. See original summary.

jasonawant’s picture

Status: Active » Needs review
mgbellaire’s picture

Hi @jasonawant,

I am also having an issue with the webform handler not submitting via AJAX. Just to verify I am having the same issue, you mean any sort of validation like a required field on the webform?

Thanks for creating this ticket and a patch for your issue that I may also be having!

jasonawant’s picture

Hi @mgbellaire,

The issue we were observing was a generic Drupal ajax error via JavaScript alert. See attached image.

The client side validation worked, but I was able to submit the form.

a JavaScript error within an alert dialog window

sandboxpl made their first commit to this issue’s fork.

sandboxpl’s picture

@mgbellaire this is related to the clientsite_validation module, see: https://www.drupal.org/project/clientside_validation

I've updated same line for v2 library as it most likely can fail in same manner,
let's see if the testing will still pass

sandboxpl’s picture

Status: Needs review » Fixed

Awright, this one is in, I'll try to merge in more changes which are hanging in there since and create new release soon!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.