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 CiviEvent (Moderator: Yashodha Chaku) »
  • Custom fields for Event (not p'ticip'ts) not searchable
Pages: [1]

Author Topic: Custom fields for Event (not p'ticip'ts) not searchable  (Read 1204 times)

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Custom fields for Event (not p'ticip'ts) not searchable
June 17, 2010, 02:42:50 pm
We have set up a new Event Type eg Chapter Meetings - and have a Custom Field for this Event Type with a list of Chapters as a Select - the intention being that when we use Find Participants we should be able to filter down to those Chapter Meetings for a specific Chapter (eg find all participants who attended California meetings in 2009)

I think it is right to be using 'Event' custom field not 'Participant' custom field for this.

However, despite setting the Custom Field to be searchable, it does not show on either the Find Participant page or in Advanced Search.

Replicated on Demo. Is this a bug?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

pbarmak

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 3
  • CiviCRM version: 3.3.5
  • CMS version: Pressflow 6.19
  • MySQL version: 5.1
  • PHP version: 5.2.10
Re: Custom fields for Event (not p'ticip'ts) not searchable
July 09, 2010, 09:35:24 am
I'm dealing with the same issue, we have teams we send out (each team set up as an Event) and each team gets a unique team number.  I have that set up as a custom field at the event level (since it's a number per team/event) and a hook to populate the team number.  Our folks currently (in their non-Civi system) rely solely on that Team Number for searches and editing. I'd need a way to expose this in Civi's searches (Find Participants, etc) and reports.

For the gurus out there, how hard would it be to implement custom fields at the Event level searches and reports?

peterd, here is the note next to the custom field "Is this Field Searchable?" box (not good news, seems like it's a feature, not a bug, as Events are not in the list):
Quote
NOTE: This feature is available to custom fields used for Contacts (individuals, organizations and househoulds), Contributions, Pledges, Memberships, Event Participants, Activities, and Relationships.

If this is a huge issue to implement, one alternative I can think of for both our cases would be to write a hook that concatenates the custom field value to the Event Name so we end up with a new event name that has both and would show up in searches.  It's a bit hacky, imho, but might work as a stop-gap.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom fields for Event (not p'ticip'ts) not searchable
July 20, 2010, 07:34:51 pm
Am coming back to this as we just hit same issue/need for another client.

Lobo or other core team - any ideas on the scope of getting Event Custom Fields to be useable as Search options in Find Participants and/or Adv Search?

pbarmak - did you resolve anything for your own needs?
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

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: Custom fields for Event (not p'ticip'ts) not searchable
July 20, 2010, 08:22:37 pm

i suspect this is a 20-40 hour project. Would be great if someone can make a code contribution and/or sponsorship to make this happen

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

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom fields for Event (not p'ticip'ts) not searchable
July 20, 2010, 08:35:30 pm
Thanks - I will see what we can pull together
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

pbarmak

  • I post occasionally
  • **
  • Posts: 111
  • Karma: 3
  • CiviCRM version: 3.3.5
  • CMS version: Pressflow 6.19
  • MySQL version: 5.1
  • PHP version: 5.2.10
Re: Custom fields for Event (not p'ticip'ts) not searchable
July 21, 2010, 08:34:50 am
Quote from: peterd on July 20, 2010, 07:34:51 pm
pbarmak - did you resolve anything for your own needs?
We pretty much built out what I described above - I created a hook on the custom "team number" field which updates the Event Title/Name, prefixing it with the value of this custom field.  Unfortunately, it has to be a prefix as the search field for the event name performs a like on the beginning of the title, it doesn't do a full string search using like '%<text>%'.  That would be another nice to have - allowing the event name search to have wildcards on both sides.

Anyway, I had to create the hook to suffice another issue I was having - the one where we can't have multiple partial payments for a single event participant.  I needed to link the event id to a custom field in the Contributions so we can apply multiple contributions to a single event participant.  So it turned out ok for now, but I sure would love to see this change - it'll help a lot with reporting.

Thanks guys.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom fields for Event (not p'ticip'ts) not searchable
July 21, 2010, 02:16:21 pm
Thanks p - just making a link to this post which is described as

Custom Search for Events with Custom Fields

http://forum.civicrm.org/index.php?topic=14725

May be just what i need
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Custom fields for Event (not p'ticip'ts) not searchable

This forum was archived on 2017-11-26.