Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
0 answers
7 views

Can a user remove their signature on a petition made with Civi Petition?

On most non-profits websites that propose signing petitions, the automatic email that comes after the petition signature contains a link allowing the user to remove their signature from the petition ...
Klemet's user avatar
  • 21
1 vote
0 answers
16 views

Token for membership fee to be taken by Direct Debit at future date

We need to send an annual scheduled reminder, well in advance of Membership Expiration Date, including the fee to be taken by Direct Debit (autorenewal). The price set for membership fees is updated ...
Simon Thornton-Wood's user avatar
1 vote
0 answers
10 views

token evalution not working

When i call eval token, it does not work $container->findDefinition('dispatcher')->addMethodCall('addListener', ['civi.token.eval', 'evaluate_tokens'] )->setPublic(TRUE); Above does ...
Prabaharan's user avatar
0 votes
0 answers
23 views

Recipient of forwarded bulk email can unsubscribe the original recipient from group

A CiviMAil bulk mail that was sent, it includes the unsubscribe token {action.unsubscribeUrl}. The recipient ([email protected])receives that bulk email The recipient ([email protected]) of ...
EricLB's user avatar
  • 385
0 votes
1 answer
27 views

Webform token works for file name pattern but not for activity subject?

I am testing a proof of concept for photo uploads. I want the name of each photo to have a unique ID with a combination of the Organisation's External ID, its CiviCRM contact ID, and a random number. ...
ChumKui's user avatar
  • 776
1 vote
0 answers
19 views

Assignment of related custom field occurs critical Error

I'm encountering an issue regarding the generation of salutations in message templates. The requirement is to first filter whether the contact is an individual or an organization, specifically ...
atcivicrm's user avatar
1 vote
0 answers
22 views

Passing webform submissions into new link - including email field breaks the link

I have a contact update webform using civi/drupal that is a precurser to an event sign up (which exists on a separate platform). The event sign up page uses the following fields to prefill the form: ...
mif's user avatar
  • 11
3 votes
2 answers
31 views

Print custom field group from multiple records

Currently we have a group of custom fields "Date" and "Medical Note" that are displayed in the table tab and that allow multiple records. We need all these fields to be printable ...
Suri Gang's Hallen's user avatar
1 vote
1 answer
48 views

Remove references to the token {$dataArray} as it has been replaced by {found within $participants}

Not quite sure about the "{found within $participants}" part of the story. How would it look in, say, {if} and {foreach} : {if !empty($dataArray)} becomes {if !empty($participants)} ? {...
yurg's user avatar
  • 2,050
0 votes
0 answers
33 views

Webform 6.2 Tokens not displaying label

I am converting Drupal webforms from Drupal 7 to Drupal 10 (Currently 10.2.1) and now using the excellent updated Webform module (6.2@beta). I thought I would post here first as this might be a ...
ChumKui's user avatar
  • 776
2 votes
1 answer
35 views

if in adress labels

can I somehow make an if-statement in the adress labels What I want to do is a diffent label depending on the contact type. Basically something like this (not working) if (contacttype = "...
werner's user avatar
  • 21
4 votes
1 answer
212 views

Message templates token replacement: is it {if membership_end_date} or {if {membership_end_date}}?

And similarly, would it be {membership_end_date|crmDate} or {{membership_end_date}|crmDate}?
yurg's user avatar
  • 2,050
0 votes
1 answer
34 views

How to direct users to the case they just created using FormBuilder?

I’m using FormBuilder to create cases. When the form is submitted, I want the user to find themselves in case they just created. I don’t understand well enough the syntax of internal pages’ links or ...
Itamar's user avatar
  • 31
2 votes
1 answer
309 views

Outdated tokens in use in message template

I have the following message after upgrading Civicrm to 5.66 "Outdated tokens in use You are using tokens that have been removed or deprecated. Please review your event_offline_receipt message ...
Hock's user avatar
  • 189
1 vote
1 answer
96 views

Webform submission token not displaying in confirmation

I have converted a simple create contact form from Drupal 7 to Drupal 9. In the Drupal 7 form, the confirmation would display a button with a link to the newly created contact like so: <p><...
ChumKui's user avatar
  • 776
1 vote
1 answer
71 views

Find or create token for field on related contact?

I administer a CiviCRM site for an education NGO. I'd like to be able to customize emails to let people know the school board and region we think they are in, so they're certain which event they ...
kapn's user avatar
  • 919
0 votes
0 answers
15 views

Token {contact.address_primary.street_number} - how to get it working

Have tried the {contact.address_primary.street_number} token for addresses (after discovering "Street Address Parsing" does not work for custom locales, see: 1, 2, 3 ). However it doesn't ...
yurg's user avatar
  • 2,050
0 votes
0 answers
18 views

CiviRules, "Relationship change" trigger: how to retrieve the relationship type to show when I send an email

I created a rule triggered when "Relationship is changed". I'd like to send an email stating the relationship type. For example: The relationship {relationship_type_id:label} between {...
masetto's user avatar
  • 183
2 votes
1 answer
35 views

$EventID is string, not int

I'm having issues with the scheduled reminder function. I have set up an email to be sent out 96 hours before the event start date. When configuring the reminders, the system throws errors in the cron ...
lbl's user avatar
  • 68
0 votes
1 answer
71 views

Outdated tokens in use

we have the following in the CiviCRM System Status, we tried to solve it with no luck, is it related to some template some where? Can you please help? Please review your contribution_invoice_receipt ...
Learn CiviCRM's user avatar
4 votes
0 answers
74 views

Calculating the difference between current date and case start date on searchkit

I am currently trying to find the number of days between the current date and the case start date using searchkit. I have tried the "Date between two dates" function on Searchkit, however it ...
Cas's user avatar
  • 73
0 votes
1 answer
67 views

CiviCRM Webforms - Webform submission value shows the field id instead of the value of the id

I have a problem with one of the fields in a notification email for CiviCRM Webforms. I’m using a Drupal Webform which includes CiviCRM contact fields. These fields include a number of fields that ...
tomodea's user avatar
  • 21
0 votes
1 answer
30 views

Is there a setting for Drupal Webform displaying raw token when they have no data to display

I am converting a Drupal 7 webform that uses two tokens in a text field's default data field to display data passed in via the URL e.g. /myform?civicaseID=12345&sessionID=6789&cid1=9876&...
ChumKui's user avatar
  • 776
1 vote
1 answer
25 views

Providing Case Link on Message Template

Upon assigning a role on a case, I wish to be able to send an email to the role. The email should include a link to the case. However, I am having trouble identifying what should the link be. The link ...
Cas's user avatar
  • 73
1 vote
1 answer
29 views

Are their tokens for expired memberships?

We are sending emails to our lapsed members, and would like to include additional data about their memberships. But all the tokens available seem to refer to "current memberships" (e.g. &...
David Hyman's user avatar
1 vote
1 answer
28 views

Token for contribution.note field in message templates

I have reviewed past posts on this topic, but I'm not a coder so I'm hoping someone can make this straight forward for me. I.e. what code do I need to use, where do I put that code, etc. We'd like to ...
erin's user avatar
  • 251
2 votes
0 answers
67 views

Is there a way to send an opt-in reminder (with a subscribe link to click) to people whose group status is pending?

I have the same problem that was described here in 2017: How can I chase up mailing list subscribers who don't confirm their opt-in? I am wondering if anyone has found a solution. To summarize the ...
Victoria H's user avatar
0 votes
1 answer
63 views

tokens not working in CiviMail automated message subject lines

I have the same problem as in this post: How can I add Subscribe Message subject line token? But that post has no resolution. Users can sign up to as many as 5 mailing groups on our form, so can ...
minbori's user avatar
  • 551
0 votes
1 answer
28 views

How to override token {action.resubscribe} for Mailings

I would need to override the value of the token {action.resubscribe} in the automated mailing message template when the contact is sent the unsubscribe confirmation email, as it doesn't contain the ...
Cristina P.'s user avatar
0 votes
0 answers
21 views

Latest contribution token pulling data from previous contributions

I have a Civi rule that sends a notification email to staff for donations over $1,000. I include the tokens "latest contribution amount", "latest contribution date", and "...
erin's user avatar
  • 251
0 votes
1 answer
44 views

Send scheduled mailing fails due to deprecated function CRM_Utils_Token::getTokenDetails

My send scheduled reminder cron job has been failing consistently. The log file shows about a dozen of these errors every time send scheduled reminders fails: [warning] Deprecated function ...
ajasper's user avatar
  • 84
2 votes
2 answers
29 views

Tokens in a Reports Title and Format section?

Is it possible to use tokens in Report Title/Header/Footer? Gave it a quick try with {contact.first_name} and failed.
yurg's user avatar
  • 2,050
1 vote
2 answers
26 views

Fuzion token {latestcurrentmembership.end_date} blank in scheduled reminder based on membership - works in mailings. Alternative?

We use the Fuzion Tokens extension and it's great! We have a membership expiration alert message template using {latestcurrentmembership.end_date} and it works perfectly well in mailings. However, in ...
Hilary Caws-Elwitt's user avatar
0 votes
1 answer
36 views

contact.id token not working in email

I used to have no problem having a link in an email like ...signup.php/reply={contact.id} Today the token does not fill with the recipient's id. The same email has Dear {contact.first_name}, that ...
Ben Bachrach's user avatar
1 vote
1 answer
38 views

Last contribution tokens

I am trying to create a rule that will notify our CEO of donations over a certain amount. In the message template I want to include info about the donation. I'm choosing the tokens for "latest ...
erin's user avatar
  • 251
3 votes
2 answers
80 views

Using a Token to Pull Only the Year from a Date

I'm trying to set up membership renewal reminder letters, and instead of including the entire date that the member joined, we'd like it to just be the year. I have a token for "...
JamesA's user avatar
  • 31
2 votes
1 answer
39 views

Can I add an organisation's finance contact to the invoice

We have edited the workflow invoice template and have the name and address of the member organisation as the address block and would like to add the Member Organisation's Finance Contact display name ...
SandJT's user avatar
  • 161
1 vote
0 answers
28 views

Activity Tokens in SMS via Civi Rules

I'm trying to set up sms reminders for activities. And am trying to configure this with CiviRules. For example, a client has an initial assessment with our youth service. I want to send a reminder ...
Craig Almond's user avatar
  • 2,037
2 votes
1 answer
76 views

Best way to fix the 'Dear [display_name} problem

When supporters are emailed it would be more personal to start 'Dear Joanna Smith' rather than 'Dear Supporter'. Of course, sometimes we don't have a first name, and sometimes only an initial so ...
Andy Clark's user avatar
  • 4,845
1 vote
0 answers
32 views

Tokens containing HTML have the HTML escaped

I want to add the event description token to an event scheduled reminder. The event description is a rich text field. When I add the token to the reminder and send it out, all the HTML from the token ...
Tony Horrocks's user avatar
4 votes
4 answers
230 views

How to create a "token" from a custom field

I'm trying to create a token from a custom fields, is there a way to do this? My specific use case is that I want to have a custom field under Events that includes the Zoom event information (URL and ...
flantascience's user avatar
0 votes
1 answer
35 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 ...
SteveTheBoater's user avatar
1 vote
1 answer
203 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
EricLB's user avatar
  • 385
1 vote
1 answer
71 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 ...
Tom Crawshaw's user avatar
3 votes
1 answer
168 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? ...
petednz - fuzion's user avatar
  • 28.4k
2 votes
1 answer
198 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 ...
SLubbinge13's user avatar
0 votes
1 answer
58 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 ...
Eric Booth's user avatar
3 votes
1 answer
38 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 ...
dsmith63's user avatar
  • 419
2 votes
1 answer
50 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
54 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 ...
Aleksandar Gligorijević's user avatar

1
2 3 4 5