Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Telephone International Widget

A field widget for entering, formatting, and validating international telephone numbers.

This module provides an additional field widget to core's Telephone field type. It utilizes a Javascript plugin for entering and validating international telephone numbers. The Javascript plugin uses a custom build of Google's <a href="https://github.com/googlei18n/libphonenumber">libphonenumber</a> library for validation, and supports the many different national number formats. We suggest using <a href="https://en.wikipedia.org/wiki/E.164">E164 format</a>.

For anybody facing the question on what is the recommended method for installing/updating/managing the intl-tel-input library required by the Telephone International Widget module, the answer is to install libraries using composer!

Install libraries for the Telephone International Widget module with Composer

The Telephone International Widget module comes shipped with a "composer.libraries.json" file makes getting the required library easy.

Guide maintainers

jcandan's picture