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) »
  • How to customize/configure standard fields?
Pages: [1]

Author Topic: How to customize/configure standard fields?  (Read 923 times)

czerwinski1977

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
How to customize/configure standard fields?
January 27, 2010, 04:55:14 am
Hi there,

I'm new to CiviCRM, so please forgive my ignorance an potential stupid question ;)

The prefix field of individuals is implemented as a drop-down list with preset entries.

1. (How) is it possible to alter this list?
2. (How) is it possible to convert/treat this field as a simple text field?

Thanks for responses!

Reinhard.

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: How to customize/configure standard fields?
January 27, 2010, 05:29:52 am
Quote
1. (How) is it possible to alter this list?
Yes. Check http://drupal.demo.civicrm.org/civicrm/admin/options/individual_prefix&group=individual_prefix&reset=1

Quote
2. (How) is it possible to convert/treat this field as a simple text field?
Nope. I would not recommend this.

HTh

Kurund
Found this reply helpful? Support CiviCRM

czerwinski1977

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
Re: How to customize/configure standard fields?
January 27, 2010, 05:48:40 am
Well, well....

Quote from: Kurund Jalmi on January 27, 2010, 05:29:52 am
Quote
1. (How) is it possible to alter this list?
Yes. Check http://drupal.demo.civicrm.org/civicrm/admin/options/individual_prefix&group=individual_prefix&reset=1

Ok, thanks, I could have found that myself - sorry for bothering...

Quote
Quote
2. (How) is it possible to convert/treat this field as a simple text field?
Nope. I would not recommend this.

Why not? In my country there are a lot of titles which some are kind of keen on... But seriously, for what reason keep this field as a fixed list?

Cheers,

Reinhard.

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: How to customize/configure standard fields?
January 27, 2010, 06:29:17 am
Quote
Why not? In my country there are a lot of titles which some are kind of keen on... But seriously, for what reason keep this field as a fixed list?

We store prefix id in civicrm_contact table. Prefix options are stored in civicrm_option_value table. So if you provide free text, on form submit you will have to check if prefix already exists in db, if yes then use the that prefix id else create new entry in civicrm_option_value table. This is bit tricky but can be implemented using hooks.

Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • How to customize/configure standard fields?

This forum was archived on 2017-11-26.