Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Webform International Telephone National Mode

Security covered Under active development 69 sites

Part of the Webform ecosystem · 217 projects

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.

Drupal 10–11

Ask your assistant about Webform International Telephone National Mode

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
3 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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