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) »
  • Getting relation between a contribution and a campagne page
Pages: [1]

Author Topic: Getting relation between a contribution and a campagne page  (Read 858 times)

f_ats

  • Guest
Getting relation between a contribution and a campagne page
June 26, 2010, 10:10:20 am
Please I just start use civiCRM
My problem is that: I want to link an offline contribution (New Contribution) with a campagne page (Contribution page); I think  I can use a custom field but I don't know how to populate this custom field automatically with contribution_page_id;
Excuses me for my english's level.
Thanks for your helps;
« Last Edit: June 26, 2010, 12:20:46 pm by f_ats »

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: Getting relation between a contribution and a campagne page
June 26, 2010, 01:59:23 pm

check:

http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+hook+specification

U'll need to implement the buildForm hook and set the defautlValues via the hook. U can make it a select option and set the values via the customOption hook

check civitest.module.sample for examples of this

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

f_ats

  • Guest
Re: Getting relation between a contribution and a campagne page
June 28, 2010, 06:14:35 am
Thanks "lobo" I solve the problem with customFieldOptions
Thanks very much.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Getting relation between a contribution and a campagne page

This forum was archived on 2017-11-26.