- Issue created by @Abhijith S
- Status changed to Needs review
2 months ago 12:22pm 2 July 2024 - 🇺🇸United States jrockowitz Brooklyn, NY
What is the reason for disabling the phone number validation? Is it not working as expected?
I am hesitant to add more features. A simpler approach would be to refactor the JavaScript so that you can override the validate method and even disable it via some custom JavaScript
The attached patch is a minor refactor which allows you to redefine the below function.
Drupal.webformTelephoneValidate = function ($telephone) { // Skip validation. return true; }
- Status changed to Needs work
2 months ago 7:43am 8 July 2024 - 🇮🇳India Nupur Badola
I have observed that the after applying the patch, the validation message is not appearing however the field boundary gets red in color but able to submit the form. Can we remove the red color.
- 🇺🇸United States Luke.Leber Pennsylvania
I can confirm some general weirdness with the i18n phone feature when used in conjunction with client side_validation.
It seems like both clientside_validation's and webform's JavaScript is both running against it and that can lead to some confusion when trying to theme things (the error messages can appear in different places in the DOM based on which validator "wins".