Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

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.

Depends on

Dependencies of the latest stable release

  • webform Drupal core >=6.3@beta

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jul 2025
Latest release
2 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

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