Telephone Validation

Categories

Component ID

2499253

Component name

Telephone Validation

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

5038

Component created

Component changed

Component body

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.

Important info

As of #2907271: Invalid use statement Drupal 8.4 and above won't work with Telephone Validation version prior to 8.x-2.0 (first stable release). Please keep Telephone Validation module up to date!