Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Won't Fix
-
Affects Version/s: 4.4.4
-
Fix Version/s: 4.5
-
Component/s: None
-
Labels:None
Description
The following info used to be in the wiki, but seems to have gone missing when tokens info was put into book.
Tokens for Custom Fields
To insert a token which references a custom field value, use custom_ plus the custom field ID. For example, to reference the custom field whose ID = 3 ->
{contact.custom_3}You can confirm a custom field ID by navigating to Administer CiviCRM » Custom Data » View and Edit Field. Then mouse over the Edit link for the field and check the id= value of the Edit URL. For example, for custom field 1 on the demo site the Edit link is:
http://drupal.demo.civicrm.org/civicrm/admin/custom/group/field?action=update&reset=1&gid=1&id=1
Tokens for the custom fields included in CiviCRM sample data:
{contact.custom_1}- Most Important Issue
{contact.custom_2}- Marital Status
The data for Custom Fields does not get displayed in the Preview pane of civiMail, however it does get sent out in the Test email. Core contact data does get displayed in the Preview pane