CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • standard phone number format?
Pages: [1]

Author Topic: standard phone number format?  (Read 2324 times)

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
standard phone number format?
November 09, 2011, 09:45:36 am
Is there a standard phone number input format in civiCRM?
For example, when people enter their phone number, what standard format they should follow, (xxx)444-2333, or xxx-xxx-xxxx, or other?

I am asking this question is because I want to know what formats will make the search, data import, or export easier.

Thank you!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: standard phone number format?
November 09, 2011, 10:29:01 am

Currently no, but we did some modifications for the NYSS which allowed a developer to add rules to ensure this fairly easily.

Kurund promised to do a blog post on this in the near future.

The issue and work done is here: http://issues.civicrm.org/jira/browse/CRM-8138

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: standard phone number format?
November 10, 2011, 06:20:07 am
Thanks for your reply, lobo. Did that mean whichever format I use for phone number, there won't be big difference for now? Or is there a best practice?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: standard phone number format?
November 10, 2011, 06:46:57 am

there is no best practice right now for entering phone numbers.

So your org can choose to implement whatever best practice it feels best (and then you can enforce it via a form rule)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: standard phone number format?
November 10, 2011, 09:34:09 am
Something that would be useful is to store the numbers only (without formatting) and and do the formatting on display.

The formatting would allow to put the right parenthesis and dash at the right places and/or add a <a href="callme:"> link

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

ouyang1512

  • I post occasionally
  • **
  • Posts: 59
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 7.12
  • MySQL version: MySQL 5.1.52
  • PHP version: 5.3.6
Re: standard phone number format?
November 10, 2011, 01:10:06 pm
Thank you both for the replies.

xavier, are there any documentation or examples for the phone number display formatting?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • standard phone number format?

This forum was archived on 2017-11-26.