Closed (duplicate)
Project:
Phone
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2012 at 17:01 UTC
Updated:
18 Oct 2012 at 23:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
g1smd commentedI've previously suggested integrating libphonenumber data into Drupal.
It contains range and length validation routines and formatting patterns for 228+ countries.
Comment #2
chrisarusso commentedMy 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...
Comment #3
chrisarusso commentedHere's a patch that adheres to drupal standard format, and presents the user with the message (s)he expects to see.
Comment #4
chrisarusso commentedNeeds review
Comment #5
slcp commentedClosed as duplicate of these issues - #1715380: Notice: Undefined index: message in field_default_form_errors() (line 381 of /var/www/drupal/modules/field/field.form.inc). + #1783770: phone_field_validate does not properly report validation error.
All of these issue are providing the same patch. The above are RTBC.