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) »
  • Setting custom fields
Pages: [1]

Author Topic: Setting custom fields  (Read 795 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Setting custom fields
December 19, 2010, 06:25:29 pm
Hi,

Didn't get this done before hols so its on my when I get back list. Thought I'd post now so I can get it done ASAP when I'm back.

I want to set a custom field in a multiset. I know the # so I had hoped $params['custom_23-13'] or $params['custom_23_13'] might be acceptable to pass to the contact create API but it drops the bit after the 23. So, what's the best way to set a custom field value of multiple field type when you know the field #?

BTW - if you pass $params['custom_23'] to a civicrm_contact_create it adds another one to the multiple value set which is useful to know
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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Setting custom fields
January 07, 2011, 02:39:50 am
http://issues.civicrm.org/jira/browse/CRM-7330
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) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Setting custom fields

This forum was archived on 2017-11-26.