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) »
  • Administrative custom data for participants, searches, hidden fields & Null
Pages: [1]

Author Topic: Administrative custom data for participants, searches, hidden fields & Null  (Read 1891 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Administrative custom data for participants, searches, hidden fields & Null
June 16, 2009, 02:25:50 am
I have hit a problem which seems to be quite a generic scenario. When running an event there is often a need to gather custom data from a participant AND to maintain administrative participant data such as whether the person has been assigned a room, whether airport pickup has been arranged, whether the person has been sent an information pack.

It is easy enough to set up custom data fields for participants that they don't see but surprisingly difficult to retrieve the information from them.

Say, for example, I choose to set up a checkbox for whether an information pack has been send out. Even if I set the default for this check box to be 0 (no) it doesn't actually get set to that for my participants because this field is not part of the profile they fill in when they enlist. It is null for all the people that matter. I can't search for a null value from my 'find participants' search and if I search for a Null value using search builder then I get everyone who has 'received an information pack' set to NULL for any event because it is a contact based search not a participant based search.

It has been pointed out that if a hidden field were to be added to the template for the event form then it would be set to the default. This would work but isn't trivial to implement (as you have to assign it to the template as well as add it in) for a usage that I would have thought would be extremely common.

If it were possible to search for participants with null values in custom fields or to assign hidden fields to profiles this would be easy.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: Administrative custom data for participants, searches, hidden fields & Null
June 16, 2009, 05:14:25 am
Eileen:

You might find this helpful: http://civicrm.org/node/562

Kurund
Found this reply helpful? Support CiviCRM

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: Administrative custom data for participants, searches, hidden fields & Null
June 16, 2009, 02:32:44 pm
Thanks Kurund - I think the longer term suggestion is about having a simple admin feature in Profile to 'hide' a particular field so it gets 'auto-filled' by default
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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Administrative custom data for participants, searches, hidden fields & Null
June 16, 2009, 04:55:01 pm
Yes, the post you linked to is helpful as it is similar to what I was looking at doing but a bit more elegant and more importantly, already written!

However, I think it's a bit harsh if administrators have to call in a developer / coder every time they want to track actions taken on an event registrant. I'd like to think that somewhere in the roadmap is a way for an front-end user to be able to search for participants based on admin fields. It seems odd to be able to create the fields but not use them

Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Administrative custom data for participants, searches, hidden fields & Null
June 16, 2009, 05:45:25 pm
Seems like 2 different approaches for resolving the problem have been surfaced here:
1. Add support for finding custom fields with NULL value (to Find Participants and other search forms)

2. Allow hidden fields to be included in Profiles (so a default value can be set for custom fields when records are created or updated)

... and third possibility, which mirrors what we do for core fields (when defaults are defined in the schema):

3. Set custom fields to their default value (if defined) whenever a record is inserted (regardless of whether that custom field is included in the create form).

What do folks think are the pros and cons of these approaches? Any other ways to solve this?
Protect your investment in CiviCRM by  becoming a Member!

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: Administrative custom data for participants, searches, hidden fields & Null
June 16, 2009, 06:13:30 pm

Quote from: Eileen on June 16, 2009, 04:55:01 pm
However, I think it's a bit harsh if administrators have to call in a developer / coder every time they want to track actions taken on an event registrant. I'd like to think that somewhere in the roadmap is a way for an front-end user to be able to search for participants based on admin fields. It seems odd to be able to create the fields but not use them

if you use that scheme and track all contribution pages (or event pages) that way, its basically a one time change

I think adding lots of options to custom fields / profile fields is not the best thing to do in all cases either. Both those pages have a fair number of options (and some of them dont work under some scenarios) that documenting / maintaining an increasingly large set will make the system more complex / add more bugs etc. As CiviCRM becomes bigger, making the core singificantly leaner and simpler is probably a good thing, IMO.

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Administrative custom data for participants, searches, hidden fields & Null
June 16, 2009, 06:17:10 pm
Is it a one-time change? Business requirements for what to track for event attendees change on the fly.

I suspect that one weakness with 2 & 3 is that sometimes these custom fields might be created after many people have registered. e.g. the manager could swan in one day and say that they issue all attendees with a super-duper scout widget and they need to track it.

In this case the participation entries would already be created so better search options might work better. The search in this case probably should treat NULL as whatever the field default is.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Administrative custom data for participants, searches, hidden fields & Null

This forum was archived on 2017-11-26.