Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm using regex validate for phone number on my website. The validate work fine that I have a strange case. When I go to checkout commerce and fail the validate (after click submit function) the regex is added to times on the settings and is used on the second parameter of regex object and break the javascript. I did a little patch to validate the modifiers on the regex object and then work.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2266333-ajax-regex.patch | 545 bytes | ardeso |
clientside_validation-problem-with-regex.patch | 637 bytes | fastangel | |
Comments
Comment #1
ardeso CreditAttribution: ardeso commentedI have a webform with regex validation and a block with ajax request in the same page. Ajax break the javascript validation. I think it's a general problem not only with commerce. I did a patch, maybe it will help others.
Comment #2
attiks CreditAttribution: attiks commentedWhat is wrong with the other patch?
Comment #3
Jelle_SFixed in latest dev version. Thanks for the patch!