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
0 votes
1 answer
17 views

Error when editing any contact: Malformed token parameters ({contact.first_name|truncate:1:"":true})

Running latest CiviCRM on latest Drupal 7, php 7.4.28. This error was reported by one of our volunteers when trying to edit a contact yesterday. Logged in as Admin I can replicate on any contact, and ...
user avatar
1 vote
1 answer
35 views

Date format for token {domain.now}

How can I configure the token {domain.now} to use the short date format? Currently it uses the "Complete Date and Time" format. The site is running 5.45.3. on Drupal 9
user avatar
  • 195
0 votes
0 answers
5 views

{domain.description} token does not parse, email will not save

When I add the token {domain.description} in to a Civi email, it does not save, preview does not work. I get the error: "Error Sorry an error occurred and your information was not saved" ...
user avatar
  • 195
1 vote
1 answer
19 views

Can I use tokens created with hook_civicrm_tokens to alter fields in SearchKit Displays?

I've written a SearchKit search with Contacts and Related Contacts, and wish to combine the names into one field on output. I know I can use the Combine Text field transformation to simply add the ...
user avatar
2 votes
1 answer
146 views

What link/token would work in a Scheduled (renewal) Reminder that would allow a person with an existing recurring payment to click and cancel it

Scenario - scheduled reminders for auto-renew membership goes out It notifies folk that 'hey your membership will auto renew in xx days' but what if we want to include a link so they can cancel it? ...
user avatar
  • 26.9k
1 vote
1 answer
60 views

Message template token no longer available / relevant

After updating to Civi version 5.45.1 we have this notice: You are using tokens that have been removed or deprecated. Please review your contribution_online_receipt message template and remove ...
user avatar
0 votes
1 answer
30 views

Out of memory and Civi errors relating to templates following upgrade from 5.35.2 to 5.45.1

Wordpress 5.8.3, shared server from SiteGround. We decided to upgrade from CiviCRM 5.35.2 to 5.45.1 in the hope of resolving an issue preventing supporter registration on website. I'm now stuck on ...
user avatar
3 votes
1 answer
25 views

Modify "Thank-you Screen" fields to support tokens?

I would like to display some data attached to an event registrant on the Thank-you page. Is there a way to enable Token parsing on the Thank-you Title, Introductory Text, and Footer Text? Example: Hey ...
user avatar
  • 355
2 votes
1 answer
32 views

Can one include tokens within tokens in a Message Template?

I have written a custom Token which contains several standard paragraphs on how to make membership payments to our organisation, which will be included in several Message Templates related to email ...
user avatar
1 vote
2 answers
39 views

Tokens in Mass Mail Attachements

How can I use tokens in Mass Mail attachements? For example, I would like to add .docx or .pdf as attachement that already contains tokens in text and then let CiviCRM replace them for each contact ...
user avatar
4 votes
1 answer
54 views

Why aren't my tokens working in mosaico?

I have created a custom Drupal 8/9 module that defines hook_civicrm_tokens and hook_civicrm_tokenValues to provide tokens to CiviCRM. It works when not using mosaico, but fails (the tokens are ...
user avatar
  • 5,974
1 vote
1 answer
17 views

How to not show label, when token value is empty?

I have a set of tokens that sometimes has values in them, and sometimes not. How can I send an email where labels only are visible when value is filled? Example: I want to send an event registration ...
user avatar
  • 2,211
1 vote
1 answer
36 views

Tokens - Need Values, not Labels

Going round in circles on something and wonder if anyone can help. Civi 5.40.1 on Wordpress. We have a profile which allows the user to enter data about themselves into custom fields. E.g., from a ...
user avatar
0 votes
1 answer
28 views

Checksum token in system email "Memberships - Receipt (on-line)" causes critical error

When using a checksum token in a receipt email like this: http://example.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=IDNUMBER&{contact.checksum}&cid={contact....
user avatar
  • 355
2 votes
1 answer
39 views

merge fields list in search kit

how to get ID of a relationship in Search Kit ?
user avatar
0 votes
0 answers
32 views

How do I remove the time from the token {contribution.receive_date}

It seems that after updating to CiviCRM 5.36.1 the token {contribution.receive_date} is now showing the time along with the date so that the format looks like this: February 8th, 2021 3:58 PM Is there ...
user avatar
2 votes
0 answers
33 views

No instantiation of Case tokens in mails sent by CiviRules

I am trying to send emails (with case tokens) with CiviRules but I do not get the tokens instantiations. The environment: I use CiviRules, Compucorp CiviCase. I have activated email Api extension, ...
user avatar
  • 21
0 votes
2 answers
50 views

How to send Participant-Specific information via CiviMail

We are running a hybrid event where some participants are virtual via Zoom and some participants attend in person. We need to send out reminders and the zoom link to virtual attendees, and also want ...
user avatar
2 votes
1 answer
31 views

Is it possible to create a token in hook_civicrm_tokenValues that retrieves the name of the creator of a non-mass-mailing?

One of our staff team has recently requested a new token be added to civi mailings that allows the name of the sender of the email to be automatically added (for use in the signature at the foot of ...
user avatar
1 vote
2 answers
51 views

Which tokens are available for activity?

I want to send a reminder to the assignee of an activity and I want to add in the message the phone number (preventing the assignee to log into CRM and spare clicks). I found these tokens from here: {...
user avatar
2 votes
0 answers
27 views

CiviMail tokens to share the public mailing URL on social media

As a site admin using CiviMail/Mosaico, is there an easy way to add links to share the mailing content on social media? I am guessing I could write HTML using a link such as: http://twitter.com/share?...
user avatar
  • 2,976
3 votes
1 answer
57 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?
user avatar
  • 2,211
0 votes
0 answers
45 views

Custom token for Events in scheduled reminder s

We tried to follow https://civicrm.stackexchange.com/a/10907/7846 from Noah Miller to use a custom event token in a scheduled reminder without success. We dumped all the variables used by the hook ...
user avatar
  • 21
1 vote
1 answer
32 views

Memberships - Receipt (on-line) template: how to check if it is a subscription or a renew

I would customize the template Memberships - Receipt (on-line) in order to give a different message if it is a signup or a renewal. I try a lot of tokens, but no ones works: $receiptType $...
user avatar
  • 121
2 votes
1 answer
29 views

How can I get at the Email address of a Contact Reference? CiviMail and Tokens question!

It's straight forward to insert the Name of a Contact Reference (custom field) in CiviMail using Tokens. Does anyone know of a way to get at the Email address belonging to that Contact Reference?
user avatar
2 votes
1 answer
36 views

How to provide custom token for subscription related automated messages?

I'm trying to privide a token for mailing related automated messages. I followed the instructions about hook_civicrm_tokens and hook_civicrm_tokenValues but it does only work for "CiviMail" ...
user avatar
1 vote
0 answers
42 views

Warning: array_search() expects parameter 2 to be array, null given in CRM_Contribute_BAO_Contribution::getContributionTokenValues()

Steps to reproduce: Search -> Find contribution Search for a contribution Choose "Email - send now" as action Choose an email template with a token. In our case we just use the token &...
user avatar
1 vote
0 answers
45 views

Forward to Friend broken; customizing the form

I just switched a CiviCRM installation over to Amazon AWS's SES email service, which will ONLY send our from verified domain email addresses. The CiviMail forward-to-a-friend link form assumes the ...
user avatar
  • 363
1 vote
0 answers
28 views

Employer ID token not working with Mosaico

I'm composing an email with Mosaico that requires the following tokens: {contact.display_name} {contact.contact_id} {contact.current_employer} {contact.current_employer_id} The first three tokens work ...
user avatar
0 votes
1 answer
31 views

How can I link E-Mail greetings/Postal greetings to "formal" or "informal" communication style?

is there a way to link a defined E-Mail greeting or Postal greeting if the communication style "formal" or "informal" is selected? I thought it could work with CiviRules but we don'...
user avatar
  • 1
0 votes
2 answers
57 views

Tokens missing in Webform Email Settings (and thus not populated in Emails received) (after upgrading)

Running Drupal 7.69 / CiviCRM 5.25.0 / PHP 7.3 After upgrading some Modules : Webform, Views Bulk Operations, i18n, and Content Access, Emails Tokens ([submission:completed_date:long], [submission:...
user avatar
1 vote
1 answer
25 views

Fields from CiviGrant as tokens?

What is the best way of getting fields from grants available as tokens for mail/PDF-merge? No native tokens? Not available in form processor extension?
user avatar
  • 2,211
0 votes
0 answers
20 views

Clicking a tokenized link for another contact leads to your activities being recorded as belonging to that user

This seems like a weird case that probably doesn't come up much, but it does seem to indicate something odd is happening. If you are logged and click on a link for a Drupal webform with contact and ...
user avatar
  • 1,569
4 votes
0 answers
26 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 ...
user avatar
2 votes
1 answer
33 views

Token for Contribution custom field outputting "Array" for a Multi-Select custom field

I created a message template for an email that will be sent to our accounting when an online contribution is made - it has a table and I've inputted tokens that will put in data for the contribution. ...
user avatar
0 votes
0 answers
55 views

Contact name Tokens for multiple relationships

I have a contact (individual) owner of several organization. He will pay the membership for all organizations. I need to send a contribution receipt showing that John Doe paid 100€ for ...
user avatar
1 vote
1 answer
59 views

use of "Dear you" extension when there is no first/last name only email and custom name field

What if I don't have First name/last name but only a custom field called "full name" How to display that field or if thats missing display: "Supporter" instead?
user avatar
  • 75
5 votes
2 answers
48 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. ...
user avatar
2 votes
2 answers
63 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 ...
user avatar
  • 21
2 votes
2 answers
160 views

CiviCase + CiviRules + Tokens

I would like to trigger an email to a particular Role on a Case (not the Client) when a Case Status is changed. Is this possible? I've added the CiviCase Tokens Extension, and I can create a message ...
user avatar
0 votes
3 answers
132 views

Is there a list of tokens anywhere?

Is there a list of tokens that are available anywhere? Is it stored in some db table I haven't seen? CiviCRM 5.20.2 on Wordpress
user avatar
2 votes
1 answer
30 views

Content aggregator for delivering Drupal 8 and CiviMail

There were at least two solutions for this in D7, Eileen's CiviToken extension and Pogstone's Content Token extension Wondering if anyone has used or knows of something that will provide this for D8. ...
user avatar
  • 26.9k
3 votes
1 answer
44 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 ...
user avatar
0 votes
1 answer
108 views

Is it possible to access contribution tokens in hook_civicrm_tokenValues?

I’m trying to make a custom token to present grouped donations in a thank you letter in a friendlier format. If I use the ‘Group contribution by contact’ option the {contribution.total_amount} and {...
user avatar
1 vote
1 answer
30 views

Extra Decimal Places on Fuzion Token 'Latest Membership Fee'

Sending a Civimail built with Mosaico utilizing Fuzion Token 1.5 {latestcurrentmembership.allfee} The amount should be $69.00 on a test record but the email reads: 69.000000000 Any suggestions? Was ...
user avatar
  • 1,813
1 vote
1 answer
49 views

Permissions help with using action.forward token in an email

I want to add a forward to a friend at the bottom of an email. When recipient clicks they see the "enter up to 5 email address" page however if they are a non-authenticated user they get a Undefined ...
user avatar
4 votes
1 answer
97 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 ...
user avatar
2 votes
0 answers
59 views

How to change the date format for a mailing token for a custom date field [duplicate]

We have a date field, custom, set to be dd-mm-yyyy but when we add a token for that custom field in a mailing it comes out as yyyy-mm-dd hh:mm:ss How do we change this
user avatar
  • 26.9k
4 votes
1 answer
62 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, ...
user avatar
  • 1,630
5 votes
2 answers
60 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.
user avatar