Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module improves the user experience for telephone fields in the Webform module. It adjusts how phone numbers are validated, allowing more flexible input formats like those provided by browser autofill, while still ensuring valid phone numbers are captured correctly.

This module is provided as a workaround for https://www.drupal.org/project/webform/issues/3278864.

It changes the UX of the out-of-the-box Webform configuration for the telephone element type.

Why?

Out of the box with the nationalMode flag set to false, there are some UX concerns around browser auto-fill values and validation. Suppose that the default country is set to the US and a user has 012 345 6789 saved in their auto-fill settings and fills the form out. Immediately, this user will be faced with a validation error that their input did not start with a +1.

With the updated element configuration, now all of 012 345 6789, 1012 345 6789, and +1012 345 6789 will be happily accepted!

How?

This module overrides the javascript library that ships with Webform for the telephone element. It sets the nationalMode flag and also adds a hidden input element to preserve backwards compatibility in the data collected.

Due to the dynamic nature of adding the hidden input element, the library needed to be overridden instead of simply influenced via Drupal.webform.intlTelInput.options.

Activity

Total releases
3
First release
Jul 2025
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.1 Stable Jun 17, 2026
1.0.0 Stable Sep 6, 2025
1.0.0-alpha2 Pre-release Jul 21, 2025