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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Get and Update Custom Field on Participant?
Pages: [1]

Author Topic: Get and Update Custom Field on Participant?  (Read 807 times)

ijames

  • Guest
Get and Update Custom Field on Participant?
March 31, 2010, 12:49:04 am
Hi,

So I'm using hook_civicrm_post to make certain mods to objects in CiviCRM and CiviEvent and CiviContribute.  I have a value I'm trying to save in the Participant after an event is registered for.  It is a custom field.  And I can see that it's "custom_27".  But when I'm doing a civicrm_participant_update(), setting just the id and the 'custom_27', doesn't do the trick from what I can tell.  

I looked at the hook_civicrm_buildForm, but I realize that the form is for the Event, not for the Participant, so I can't inject information using this technique, right?  http://wiki.civicrm.org/confluence/display/CRMDOC/Update+custom+fields+in+contributions+and+events+by+passing+variables+in+a+URL

So how do I make this happen?

And if it's not implemented, how can I implement setting the custom field on the post?

Thanks a ton!!!

James
« Last Edit: March 31, 2010, 01:12:48 am by ijames »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Get and Update Custom Field on Participant?

This forum was archived on 2017-11-26.