Questions tagged [tokens]

Equivalent of mail merge fields. Facilitates to insert information from the database into an email or a letter that is different for every recipient.

Filter by
Sorted by
Tagged with
2
votes
1answer
298 views

How to create tokens for custom fields (participant, individual, organisation)

Drupal 7, Civi 5.12 I have created custom fields for civievent bookings (to be used for Participants, Individual, Organization). Is there an easy way for a non developer to create tokens for these ...
8
votes
3answers
1k views

Can I put custom field tokens into a message template?

I want to add custom fields to mail templates without writing tokens. Is this possible? If so, where can I find the entity relationship diagram for civi? Thanks,
3
votes
1answer
254 views

Can tokenValue hooks be used in scheduled reminder emails?

I have the same problem as at http://forum.civicrm.org/index.php/topic,32608 I have created a tokenValues hook to fetch the value of a field from a multi-record custom field set. I have the token ...
4
votes
3answers
194 views

Is there a token for contribution type?

There seems to be tokens for all sorts of contribution things but not for the financial type. Maybe I'm missing it somewhere. We're doing tax letters and the type ends up being the fund the people ...
4
votes
4answers
533 views

Today's-Date token for PDF

How can I automatically display today's date in a pdf or email. I tried the "thank you date" token but the date format is 12-31-15 12:30. I need December 31, 2015... I tried plugging in this {$...
3
votes
1answer
133 views

How can I use custom tokens when grouping Thank You letters

Being able to group Thank You Letters by contact is a great feature for both everyday receipts (we have a company that will donate via multiple smaller donations at once) and end of the year receipts. ...
5
votes
1answer
136 views

How can I reference a contact's Drupal/Wordpress/Joomla account with a CiviMail token?

From time to time we need to send messages through CiviMail that include a contact's CMS (Drupal/Wordpress/Joomla) username or ID. How can we add this to the available tokens?
3
votes
1answer
139 views

Soft credit / honoree info in a token for Thank You letters?

I have hunted and not found anything so I am assuming that this does not exist -- but thought I'd ask just in case. I'd like to be able to reference the soft credit / honoree information in Thank You ...
3
votes
1answer
176 views

How can I chase up mailing list subscribers who don't confirm their opt-in?

When someone adds themselves to a group that is configured as a mailing list they get sent an email with a confirmation link. The email includes the token: {subscribe.url} We now have something like ...
1
vote
1answer
61 views

Why after importing contact records were Addressee field values set to “Customized” for records where Custom Addressee had a null value?

I imported a large group of organisations into a sub-org group "Media". Some orgs had a specific generic addressee (ie, Editor) which I imported into the Custom Addressee field. After import I ...
12
votes
2answers
568 views

How do contact hashes work, and how do I keep them secure?

Currently we don't use contact hashes but we'd really like to. My understanding is that contact hashes are exposed as a token that can be used in CiviMail where they are appended to links. They're ...
4
votes
2answers
139 views

Removing Carriage returns after a blank address field?

We have an address block on some pdf templates in CiviCRM some contacts have address2 or address3 lines while other do not. Using the normal tokens we end up getting blank lines and the address block ...
4
votes
1answer
46 views

Token for {$totalAmount|crmMoney}?

I want to use in a Mosaico template a token for the contribution and I found in a system template this string: {$totalAmount|crmMoney}. I tried to use it in my new template but it doesn't show in the ...
4
votes
2answers
175 views

How to include a token in a view?

The CiviCRM Views integration (Drupal) provides a way to create a View using data from Civi fields. Is there a way to include the output from a Civi token in the View? The use case is that I have a ...
3
votes
1answer
94 views

Tracking links that have been added via tokens

I have created a token using hook_civicrm_tokenValues that inserts content into a CiviMail. The content includes URLs that we want to track. As I understand it (and I don't understand it very well) ...
3
votes
1answer
265 views

Event Time Zone

My org has events that are often hosted online and participants who register to attend these events live all over the United States. When we create events we make sure to list the timezone in the "...
3
votes
1answer
31 views

Update addressee values for all contacts after modifying Addressee Type Options

I have updated the tokens in my Addressee Type Options (at Administer > Communications > Addressee Formats), and now CiviCRM is now generating my desired addressee values each time I save contacts. ...
3
votes
2answers
58 views

Is there a bug when placing a token inside quotation marks in CiviMail 4.6.2+?

I have a mailing template with this snippet: Trouble seeing this email? <a href="{mailing.viewUrl}">Read in your browser</a>. In previous versions of CiviCRM, the token would render ...
2
votes
3answers
151 views

Error for token.php related to greeting tokens

I keep getting a error daily for one of my cron jobs: Cron <site@prefix> /usr/local/bin/php /home/site/public_html/administrator/components/com_civicrm/civicrm/bin/cli.php -s www.site.org -u ...
2
votes
4answers
83 views

Handling null values in tokens in civimail (and elsewhere)

Has anyone developed an extension to handle null values in tokens? For example: Sending an email to a contact with no first name: Dear {first.name}, will end up as -> Dear , It appears that ...
2
votes
2answers
89 views

Can I add non-contact fields (such as membership, contribution, relationship, etc) in bulk emails?

I want to add fields from other modules, such as membership,contributions, relationships etc in bulk emails? I don't know php so I hope I can put the field name inside {}. Is this possible? If so, ...
2
votes
1answer
118 views

How do I create a token that automatically gets urls convert to trackable links?

This is kind of the opposite of Integrating CiviMail tracked links with Google Analytics In other words, I'm generating html for civimail using tokens, and the html includes links, but those links ...
1
vote
1answer
178 views

Token not evaluating in CiviMail

I have a token for a custom field in my email template, but its not being replaced with the value when the email is sent. What's wrong? How can I fix it?
1
vote
1answer
79 views

Add Membership Token to PDF Template Joomla

I have been banging my head on this for a few days. I created a PDF Template for our members so I can run a search of members in Expired or Grace, then PDF a letter reminding them to pay their ...
1
vote
1answer
137 views

Can I use membership information in a mail?

We are using Memberships including some custom fields to save additional information (e.g. the name of a specific beneficiary supported through that individual membership). Mailings through CiviCRM ...
1
vote
1answer
32 views

avoiding tracking of some links

The doc's give this example: "you may wish to avoid tracking who has clicked on the "how to deal with drug issues" link on a specific mailing". Is there a way of specifying which link(s) are not to ...
1
vote
1answer
71 views

Invoking hook_custom_tokens and hook_custom_tokenValues in Joomla

I have tried, in vain, to invoke hook_civicrm_tokens and hook_civicrm_tokenValues in a Joomla instance in order to add custom tokens (to be specific: relationship information). I created a Joomla ...
0
votes
0answers
14 views

Tokens are not populated in the mail sent by webforms

After upgrading to 5.24.4, then 5.25.0, Tokens are empty in the mails sent by webforms : e.g. : [submission:date:long], [submission:user],[submission:values],[submission:url] The mail only contains : ...