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 CiviReport (Moderator: Dave Greenberg) »
  • Adding Custom Fields for Contact Sub-Types
Pages: [1]

Author Topic: Adding Custom Fields for Contact Sub-Types  (Read 477 times)

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Adding Custom Fields for Contact Sub-Types
October 10, 2013, 07:25:32 pm
So I have Contact sub-types, and each sub-type has its own sets of custom data.  I'm trying to add custom data for a sub-type to an event report.  In the past I could use:

Code: [Select]
  protected $_customGroupExtends = array('Participant','Individual');
But I'm getting ONLY those custom groups that are defined as "Individual" without a sub-type (such as "Prospect").  I've tried a few variations, such as "Individual:Prospect", "Individual.Prospect", "Individual_Prospect" to no effect.

Is there a particular syntax I need to follow for the sub-type?  Or can this just not be done this way?

I figure I can either change my custom groups to be less specific (not desirable for a whole range of reasons), or add them in a more laborious and specific manner.

Thanks

e_mason

  • I post occasionally
  • **
  • Posts: 65
  • Karma: 1
  • Eliot Mason
  • CiviCRM version: 4.05
  • CMS version: Drupal 7
  • MySQL version: 5.1xx
  • PHP version: 3.53
Re: Adding Custom Fields for Contact Sub-Types
October 10, 2013, 08:36:36 pm
Well - it occurred to me to see if I actually had any searchable fields in the custom groups ... and sure enough I had a perfect 1:1 relationship between sub-type and no searchable fields.

So ... adding "Individual" to the above statement is sufficient IFF you have also marked your fields properly!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviReport (Moderator: Dave Greenberg) »
  • Adding Custom Fields for Contact Sub-Types

This forum was archived on 2017-11-26.