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 adds robust validation to Drupal's telephone field and form elements, ensuring better data quality. It leverages the libphonenumber library to support various national number formats and suggests using the E164 format for international numbers. The validation works with both Form API and Field API, making it suitable for direct form entries and API data updates.

Telephone validation module provides field validation to Drupal core Telephone field and tel form element. Just install the module and enable field validation to ensure telephone data quality.

The module uses libphonenumber composer package for validation, and supports the many different national number formats. For international telephone field we suggest using E164 format.

D8 version works well with both Form API and Field API so you can validate data on form level or field validation level (which is important if you create or update data via REST API).

If you have any troubles using this module please create an issue.

For formatting the telephone number use telephone_formatter module.

Activity

Total releases
2
First release
Dec 2024
Latest release
1 month ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Release date
8.x-2.6 Stable Jun 15, 2026
8.x-2.5 Stable Dec 6, 2024