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) »
  • Can contact have repeating custom fields?
Pages: [1]

Author Topic: Can contact have repeating custom fields?  (Read 1203 times)

xtempore

  • Guest
Can contact have repeating custom fields?
February 10, 2010, 06:40:51 pm
For the site I am working on there is a need to track "points" earned by a contact.

Over the course of the year they accumulate a number of points, and the system needs a way of tracking the total each year, split into 2 categories (let's call them A and B).

Just the total in each category for each year is needed. So, the information that needs to be captured (and reported on) is relatively simple, and might look something like this....

NameMary Smith
PtsYear: 2008A=123B=20
PtsYear: 2009A=220B=40
PtsYear: 2010A=30B=0

Can I create a group of custom fields for this, and apply them multiple times to a single contact?

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: Can contact have repeating custom fields?
February 10, 2010, 09:22:30 pm

yes, custom fields with multiple records are for this purpose

note that:

1. we do not support import/export of such custom groups (u can export via a custom search)
2. such custom fields cannot be exposed via a profile directly (u can do so via hooks)

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

xtempore

  • Guest
Re: Can contact have repeating custom fields?
February 10, 2010, 09:48:13 pm
Great.  Sorry for being such a noob (it's just because I am).  Don't know how I missed that option in Custom Fields.

But I need hooks to use them in profiles?  Sounds painful.  A pointer to some documentation / example would be great.

Thanks!

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: Can contact have repeating custom fields?
February 11, 2010, 07:36:20 am
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

xtempore

  • Guest
Re: Can contact have repeating custom fields?
February 11, 2010, 02:58:16 pm
Thanks for all you help.

I've hit a point now where I've spent far too much time trying to get CiviCRM to meet my requirements, and with little to show for it.

The stuff that is there looks great, but in the end there are just too many gotchas.

I appreciate the feedback provided, but I have decided that to move forward I have to dump CiviCRM and write from scratch.

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: Can contact have repeating custom fields?
February 11, 2010, 03:02:25 pm

no hassle, good luck with your project

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Can contact have repeating custom fields?

This forum was archived on 2017-11-26.