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) »
  • CiviEvent Custom Fields for Specific Event.
Pages: [1]

Author Topic: CiviEvent Custom Fields for Specific Event.  (Read 684 times)

Stulast

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
  • MySQL version: 5.3.8
  • PHP version: 5.5.16
CiviEvent Custom Fields for Specific Event.
November 17, 2011, 08:20:40 am
I am currently working on a Civi3/Drupal 6 implementation.  The client has asked for custom fields to be available for specific events (not event types).

I have added a set of custom fields, indicating that they be related a specific event (which I will call specific event 1) by setting the "used for" selection to "participant -> specific event 1".  From here I have gone to CiviCRM profiles and added a profile to include this custom data field, and called it "specific event profile" so that the field is available for the prospective participant to complete via the drupal application process.

Finally I have added this specific event profile as one of the "included profile" options on the event "online Registration" form.

The custom data field shows up for this event, but is also appearing for all other events of that event type, despite setting the "used for" option to "participant -> Specific event 1".  I had thought that assigning the "used for" option would restrict the visibility of this field to just that particular event.

Is this a bug with Civi, or is this functionality just not available in Civi.

We are, in the meantime, using specific CiviCRM profiles to handle custom data fields for specific events, but the client has indicated that they are not happy with this option, and are looking to avoid a glut of one off profiles.

Any advise, recommendation, or links to resolving this issue would be greatly appreciated.

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: CiviEvent Custom Fields for Specific Event.
November 17, 2011, 10:02:20 am
Quote from: Stulast on November 17, 2011, 08:20:40 am
The custom data field shows up for this event, but is also appearing for all other events of that event type, despite setting the "used for" option to "participant -> Specific event 1".  I had thought that assigning the "used for" option would restrict the visibility of this field to just that particular event.

Is this a bug with Civi, or is this functionality just not available in Civi.

I'm assuming u mean extending participant info. Can you reproduce this on the demo machine? If so, it does seem like a bug and should be filed as an issue. If you can investigate and contribute a patch to fix it that would be great. Ping us on IRC if u need help getting started

Regarding the one-off profiles, i'm not sure anything can be done about it easily. One option might be to suppress those profiles in the profile display and not expose them to the admin. You can probably do this via a hook

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

Stulast

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Drupal 6
  • MySQL version: 5.3.8
  • PHP version: 5.5.16
Re: CiviEvent Custom Fields for Specific Event.
November 18, 2011, 01:23:07 am
Thanks Donald,

I will try to replicate on the demo machine over the weekend.

I think if we look at this first, and then look at developing a module using hooks after as I would hate to be overriding existing core functionality that may be fixed in the future.

Will probably IRC you over the weekend regarding the above.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • CiviEvent Custom Fields for Specific Event.

This forum was archived on 2017-11-26.