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
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 ...
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,
5
votes
2answers
54 views

Do any token extensions provide a token for “age” rather than just DOB?

Age is displayed on a contact record but only DOB is a token available in message templates. Are there any extensions that make age available for use? I've not been able to locate anything.
5
votes
2answers
47 views

Listing Groups in a mail template

I'm creating an email template to be used to confirm a contact's membership status, and I would like to include a list of the Groups (representing Committees in our case) that the contact belongs to. ...
5
votes
3answers
214 views

Is there a token for base url?

We are often caught by having links in Message Templates that work on live, but then incorrectly take us to the live site when testing on dev - which can result in confusion or worse, errors or ...
5
votes
2answers
302 views

Tokens in greetings not replaced

I implemented miscellaneous custom tokens and have been using them successfully in mailings and pdf generation. But in context of greetings I came across some weird misbehaviour. I tested by ...
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?
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 {$...
4
votes
1answer
97 views

Feature request: Make Checksum tokens easier to use

Checksum tokens are arguably one of the coolest yet most overlooked features of CiviCRM. It allows you to send targeted emails for donations, membership and event registration in a way that ...
4
votes
1answer
139 views

How do I change my organisation's address in a mailing?

I want to send out a civi mailing relating to a change of office address - the trouble is, the required {domain.address} refers to the old address and I can't see how to change this? Is there a ...
4
votes
1answer
92 views

How do I configure the duration of the checksum links?

Is there a way to configure the duration of the checksum links used when sending a mail - either globally or using a specific parameter in the token ? I can't find any documentation on this but i'm ...
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
78 views

Can Legal Name be used as a token?

I need to use an organization's legal name for invoicing. I have already customized the invoice template for many other fields, but cannot see how to insert Legal Name as a token. I note this 10 year ...
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
2answers
200 views

Tokens for Custom Field Set with Multiple Records

I'm looking to print / email groups of contacts with a list of their accreditations which we've stored in a custom field set with multiple records. How do we get that to appear on emails & ...
4
votes
1answer
48 views

Empty token default values — core or extension support?

I want to provide a default value for tokens when the value is empty, on a per-use basis -- e.g., something like {contact.first_name?Friend} would print the contact's First Name if it's not empty, ...
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
59 views

When saved to activities, tokens inside emails are not evaluated

Is it normal that when a reminder email goes out and is saved as an activity that tokens are not evaluated and saved in the activity? If that is normal, where is the best place to make a feature ...
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 ...
4
votes
0answers
18 views

How can I add Subscribe Message subject line token?

When users sign up to several mailing lists via our webform, they receive automatic 'Subscribe Message' confirmation emails for double opt-in. If they have attempted to sign up to two groups at the ...
4
votes
0answers
166 views

How to use Contribution Token {contribution.amount_level}?

The contribution tokens contain the token {contribution.amount_level}. I find this tokens via find contributions -> Email send now I was hoping this token would return information about the Price Set ...
3
votes
3answers
227 views

Address line blank in pdf letter

When adding all of the address fields in a PDF letter i am getting a blank line for supplemental address line 1 if that user does not have that field populated. Is there any way to avoid having a ...
3
votes
2answers
45 views

Is it possible to use CiviCRM tokens in external services?

Maybe this is a dumb question, but I'm quite new to CiviCRM. Is it possible to use CiviCRM tokens in external services? Let's say for example that I would like to use another mailing service instead ...
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 ...
3
votes
1answer
31 views

Checksum expiration

How long is a URL-link using a checksum token from CiviCRM valid? And can you send multiple emails using same token? When does the expiration clock start ticking?
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
3answers
276 views

Where / how is the {domain} token formatted?

I am required to use the {domain} token for mass mailing, but it is formatted with line breaks .. can I modify that formatting ?
3
votes
2answers
342 views

How can we make Event custom fields available as tokens for scheduled reminders?

We've done some investigation and found two places we could intervene to make this possible: Intervene here: CRM_Core_BAO_ActionSchedule::sendMailings(), but to make tokens available we'd have to ...
3
votes
1answer
156 views

Tokens in civicrm webform - not showing contact

Webform has a browser for 'available tokens'. civicrm-contact appears in it, but none of the tokens seem to work. Is there anything I have to do to enable them ? If I put this in the confirmation ...
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
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 ...
3
votes
1answer
46 views

Can i use CiviToken in Custom Fields

Can i use CiviToken (https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken) as Default Values in CiviCRM Custom Fields the same way Drupal lets you use it. Thanks
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
1answer
199 views

Civimember: token for membership end date not working

We are having a problem in setting up our Scheduled Reminders for Membership Renewals. The reminders are sent out as scheduled, but the relationship between Contact to Membership (which is through a ...
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. ...
3
votes
1answer
28 views

Issue with CK editor <wbr> tag appearing in Token

In the CK editor, when I add a token and look at the source code, the wbr/> tags appear in the token breaking the token. I have a feeling this crept in after I enabled Smarty for email. Does anyone ...
3
votes
1answer
46 views

Is there a way to update the contact.addressee field in batches?

I have about 50,000 contacts to update and I have a scheduled update greeting job set up (based on this post Update addressee values for all contacts after modifying Addressee Type Options - thanks ...
3
votes
1answer
46 views

Is there a token for the email used in a CiviMail mailing?

I'd like to include text in my mailings like: This email was sent to [contact.the_email_used_by_mailing] ... I am aware that I can use [contact.email] to bring in the primary email, but what if ...
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
60 views

How to populate the tokens used for a Scheduled Reminder in the Activity

Scheduled Reminders allow one to "Record activity for automated email" which is great. But if tokens are used in the Reminder, these are not populated in the Activity that is created. How would one ...
3
votes
1answer
43 views

token for country iso code

the token {contact.country} returns the full name of the country, I'd need the iso code (eg "FR" instead of "France"). Am I missing the obvious and is there a {contact.country_iso} hidden somewhere ?...
3
votes
2answers
200 views

in CiviMail, when using “view in browser” link, how can forward to a friend be disabled?

When a person clicks on the view in browser link in an email, the email is generated on a webpage. This webpage also includes any tokens like Forward to a friend, which on this webpage does not work. ...
3
votes
0answers
34 views

Custom Tokens TOKEN_REGISTER not getting invoked

CiviCRM 5.9.1 Drupal 7.61 Trying to create custom tokens using "hook_civicrm_container", TOKEN_REGISTER is getting set as well as TOKEN_EVALUATE function in $container variable but TOKEN_REGISTER ...
3
votes
0answers
74 views

How can I send an event-specific PDF certificate to participants via email?

Using Civirules and the PDF Creation API extension I can send an email with an attached PDF containing tokenised content to a contact based on a specified trigger and conditions. What I want to do is ...
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 ...
2
votes
2answers
86 views

{domain…} tokens not parsed in regular mail?

Is it me, or are the {domain...} tokens not parsed in a private (non-civimail) mail ? Like, when sending a mail from a contacts page ? If it isn't me, then the documentation here is wrong ? https://...
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
3answers
66 views

Additional info required on mail tokens

Was wondering if anyone could help. We need some mail tokens adding for membership details and event details so we can send out mass mails with personalised information in. This isn't in civicrm as ...
2
votes
2answers
42 views

How can I use existing tokens to send out a single Scheduled Reminder to both the Org and the Employee

Scenario is: Acme has a membership which is inherited by employees. John is a permissioned employee - and hence should be able to renew 'on behalf of' and hence goal is that he should be sent ...
2
votes
2answers
50 views

Sending organisation custom tokens to individual

I want to use CiviMail to bulk mail key individual contacts from member organisations and want to include tokens in their email to remind them of the information we currently hold on their ...