We'll need an address field. Target functionality:

  • Allows multiple items, each of a different type, e.g., home, work, cel/mobile
  • Allows extensions.
  • Formats phone numbers on display, e.g., adding parentheses and dashes as appropriate.
  • Allows area codes and supports multiple countries.
  • TBD: do we need validation? This is complex, given the many different formats in different regions and countries.
  • Ditto for input masks, e.g., (XXX) XXX-XXXX. Useful but hard to get right for all variations.

Options:

See also phone module comparison page.

Address Field Phone is simple and integrates with Addressfield, which we're already using, so it's likely our best bet.

Comments

nedjo’s picture

Did some quick evaluation of both Phone (phone) and Phone number (cck_phone).

Unfortunately neither provides a close fit for our needs here.

Phone:

Phone number (cck_phone):

nedjo’s picture

nedjo’s picture

Status: Active » Postponed

RedHen developers are planning to add a custom solution, see #1748636: Recommended solution for phone number field?.

Postponing until there is a better solution to build off of. Meantime, we can add documentation suggesting users add phone numbers to a generic text field, see #1774452: Add additional information text field to contact types and organization types.

nedjo’s picture

Issue summary: View changes

Expand target functionality list.

nedjo’s picture

Version: » 7.x-1.x-dev
Issue summary: View changes
nedjo’s picture

Issue summary: View changes
nedjo’s picture

Status: Postponed » Active

We could go with Address Field Phone. Telephone might also be a candidate, except that it lacks a stable release.