We are using only United States and when entering a number such as "305-555", the field accepts it and enters that into the field for the node. There should be better validation of number formats to ensure that there is a real phone number entered.

Comments

g1smd’s picture

I've previously suggested integrating libphonenumber data into Drupal.

It contains range and length validation routines and formatting patterns for 228+ countries.

chrisarusso’s picture

My experience is validation works, in that it stops the form from submitting, but no form error message is visible, and phone field is not highlighted, so user has no idea why submission hasn't worked. Researching as to why...

chrisarusso’s picture

StatusFileSize
new587 bytes

Here's a patch that adheres to drupal standard format, and presents the user with the message (s)he expects to see.

chrisarusso’s picture

Status: Active » Needs review

Needs review

slcp’s picture

Status: Needs review » Closed (duplicate)