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 CiviContribute (Moderator: Donald Lobo) »
  • Custom field in contributions not available in "send PDF letter" tokens
Pages: [1]

Author Topic: Custom field in contributions not available in "send PDF letter" tokens  (Read 352 times)

flo81

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
  • CiviCRM version: 4.5.8
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.40
  • PHP version: 5.4
Custom field in contributions not available in "send PDF letter" tokens
March 26, 2015, 01:46:45 am
Hi,

My client needs to send receipts for all contributions (we use membership fees and donations). But on the receipts he needs to print the contribution total amount in plain text ("fifty-five" for a $55 donation). I was able to add a custom field set and a custom field for this to contributions (available for membership fees and donations) and use it.

My problem : when I search for this year's contributions in order to print the receipts (using "create printable letters" action), my custom field is not available in the token list.

Reading the token's dropdown help text, I tried to include in my template something like :

Code: [Select]
{contribution.custom_29}
...where 29 is the id of my custom field (from URL /civicrm/admin/custom/group/field/update?action=update&reset=1&gid=5&id=29), but it doesn't work (I tried the custom field set id too). The help text explains this technique for contact custom fields, maybe contributions don't work the same way.

Any idea on how I could print my contribution custom field ?
Thank you

EDIT
Sorry for duplicate : http://forum.civicrm.org/index.php/topic,35699.msg151671.html#msg151671
« Last Edit: March 26, 2015, 01:48:54 am by flo81 »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Custom field in contributions not available in "send PDF letter" tokens

This forum was archived on 2017-11-26.