Answers.Body: <p>Tokens are available only for contact related columns - 
  if you want to use contribution related columns as tokens then you need to create an extension and add token hooks for making the values available in tokens list </p>
  
  <p>Please refer to the following link for creating token hooks</p>
  
  <p><a href="http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokens" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokens</a> </p>
  
  <p><a href="http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokenValues" rel="nofollow">http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokenValues</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-09T16:23:01.430Z
Answers.LastActivityDate: 2015-11-09T16:23:01.430Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Answers.Body: <p>Also have a look at the answer to this more recent question about how to add custom Participant and Organisation fields to an invoice.</p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/29230/how-to-create-tokens-for-custom-fields-participant-individual-organisation">How to create tokens for custom fields (participant, individual, organisation)</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-20T15:31:38.073Z
Answers.LastActivityDate: 2019-04-20T15:31:38.073Z
Answers.UserDisplayName: Davy Ivins
Body: <p>I know that sticking in a contact-related custom field to the invoice template is just "contact.custom_xx" (where xx = custom field id).</p>
  
  <p>We're trying to do the same for a Contribution-related custom field, but the syntax:</p>
  
  <p>contribute.custom_xx or contribution.custom_xx is not working.</p>
  
  <p>Any suggestions?</p>
  
Tags: <civicontribute><custom-fields><pdf><invoice>
Title: Custom fields for invoice / PDF
ThreadText: # Custom fields for invoice / PDF
  
  (Asked by: username_0 on 2015-11-09)
  
  I know that sticking in a contact-related custom field to the invoice template is just "contact.custom\_xx" (where xx = custom field id).
  
  We're trying to do the same for a Contribution-related custom field, but the syntax:
  
  contribute.custom\_xx or contribution.custom\_xx is not working.
  
  Any suggestions?
  
  **Tags:** civicontribute, custom-fields, pdf, invoice
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2015-11-09. Score: 1 | Accepted answer
  
  Tokens are available only for contact related columns -
  if you want to use contribution related columns as tokens then you need to create an extension and add token hooks for making the values available in tokens list
  
  Please refer to the following link for creating token hooks
  
  <http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokens>
  
  <http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_tokenValues>
  
  
  ---
  
  ### Answer by username_2 on 2019-04-20. Score: 1
  
  Also have a look at the answer to this more recent question about how to add custom Participant and Organisation fields to an invoice.
  
  [How to create tokens for custom fields (participant, individual, organisation)](https://civicrm.stackexchange.com/questions/29230/how-to-create-tokens-for-custom-fields-participant-individual-organisation)
  
  
  ---
  
  