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...
Comment | File | Size | Author |
---|---|---|---|
#5 | Screenshot_4_5_21__8_12_AM.jpg | 38.28 KB | jasonawant |
Issue fork simple_recaptcha-3205930
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:
Comments
Comment #3
jasonawantComment #4
mgbellaire CreditAttribution: mgbellaire at Mediacurrent commentedHi @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!
Comment #5
jasonawantHi @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.
Comment #7
sandboxpl@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
Comment #8
sandboxplAwright, this one is in, I'll try to merge in more changes which are hanging in there since and create new release soon!