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 (Moderator: Dave Greenberg) »
  • Phone extensions
Pages: [1]

Author Topic: Phone extensions  (Read 1352 times)

chrisivens

  • Guest
Phone extensions
January 12, 2009, 04:04:02 am
Is there a correct way to add an extension to a phone number? I'd prefer to have it as a separate field to make imports easier.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Phone extensions
January 12, 2009, 05:19:15 am
if you want a separate field on form, i would use combination of custom templates and custom php files. You can use existing phone field in civicrm_phone table to store extension. So may be you can store as phone numder - extension.. and when editing you should split on "-" .

HTh

Kurund
Found this reply helpful? Support CiviCRM

chrisivens

  • Guest
Re: Phone extensions
January 12, 2009, 10:54:29 am
That sounds feasible. I'll give it a go. Probably veering into something for the development topics but how do I override the saving of the phone field. I'd rather not have it write normally and then have my version of data writing.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Phone extensions

This forum was archived on 2017-11-26.