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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • What are values used for in custom data fields?
Pages: [1]

Author Topic: What are values used for in custom data fields?  (Read 1146 times)

samarkand

  • Guest
What are values used for in custom data fields?
July 27, 2007, 01:47:31 pm
When I set up multiple choice options in a custom data field, such as a select menu, I am asked for the value of each option (in addition to the label).

What are values used for? I see that in the demo, the values that were entered for just such a custom field were simply the first letter of each label.

Thanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: What are values used for in custom data fields?
July 29, 2007, 02:39:50 pm
Sometimes it is useful to store a different "value" in the DB than the "label" that you show to a user for SELECT, RADIO or CHECKBOX type field. The most common reason is that you are importing data from another application that uses "codes", OR exporting data to an application that needs "codes".

EXAMPLE: What is your country of birth?

Label (shown to user)   Value (stored in DB)
=============   =============
United Kingdom           UK

If you don't "need" to import or export values that are different than what you show to users, than you can make the Label and Value the same.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • What are values used for in custom data fields?

This forum was archived on 2017-11-26.