Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Token Fields not displaying in emails

  • madvet
  • madvet's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 7 months ago #231486 by madvet
Please help us help you and fill where relevant:
Your LimeSurvey version: 3.28.25+220822
Own server or LimeSurvey hosting: Hosting with Xneelo
Survey theme/template: Vanilla
==================
I need help. Since the update the fields from the token table are not pulling into the emails "admin notifications"  {TOKEN:FIRSTNAME} {TOKEN:LASTNAME}{TOKEN} return blank results.

Any idea's how I can fix this?

Thank you
Vincent

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 7 months ago #231491 by tpartner
Replied by tpartner on topic Token Fields not displaying in emails
They work for me.

Can you provide the code in your email template?

 

 

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

  • madvet
  • madvet's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 7 months ago - 1 year 7 months ago #231495 by madvet
Replied by madvet on topic Token Fields not displaying in emails
"Dear Mandy,

A new application for a pet behaviour consult has been completed.

{TOKEN:FIRSTNAME} {TOKEN:LASTNAME} for {Pet1Name} who is a {INSERTANS:678975X36X758}

E-mail address {TOKEN:EMAIL}
Alternative email {INSERTANS:678975X36X8487}
Mobile number {INSERTANS:678975X36X7569}, {INSERTANS:678975X36X8486}
Address: {INSERTANS:678975X36X75610}

Referring veterinarian: {INSERTANS:678975X36X7571}, {INSERTANS:678975X36X7574},
The contact number of the vet: {INSERTANS:678975X36X7572}
Email of the vet: {INSERTANS:678975X36X7573}

Link to the pdf hat.org.za/questionnaire/index.php/plugi...&token={TOKEN}&pdf=1

Please contact them to arrange a consultation date and time.

Kind regards,
Dr Aileen "

Thank you for the response. I really appreciate it. This has been working for years but it does not work anymore. Not sure where to start looking for the issue. None of the fields come through from the token table.
Last edit: 1 year 7 months ago by madvet. Reason: Just add more info

Please Log in to join the conversation.

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
1 year 7 months ago #231496 by tpartner
Replied by tpartner on topic Token Fields not displaying in emails
Try removing "TOKEN:".

So, just:

Code:
{FIRSTNAME} {LASTNAME} {EMAIL}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
1 year 7 months ago #231497 by jelo
Replied by jelo on topic Token Fields not displaying in emails

Since the update the fields from the token table are not pulling into the emails "admin notifications"
 
Can you explain, what "update" caused the change? LimeSurvey update? Old version was what?

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

  • madvet
  • madvet's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 7 months ago #231498 by madvet
Replied by madvet on topic Token Fields not displaying in emails
I need the token field but I tried what was asked and the token pulled through but the Firstname lastname and email gave an error.

<span class='em-expression em-haveerror' ><span class='em-error' title=' ' ><span title='Undefined variable' class='em-var em-var-error' >FIRSTNAME</span></span></span> <span class='em-expression em-haveerror' ><span class='em-error' title=' ' ><span title='Undefined variable' class='em-var em-var-error' >LASTNAME</span></span></span>
E-mail address <span class='em-expression em-haveerror' ><span class='em-error' title=' ' ><span title='Undefined variable' class='em-var em-var-error' >EMAIL</span></span></span>

Please Log in to join the conversation.

  • madvet
  • madvet's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
1 year 7 months ago - 1 year 7 months ago #231500 by madvet
Replied by madvet on topic Token Fields not displaying in emails
We use comfort update and I ran the newest update 12/08/2022  and  detected the issue on the 17th since the the token fields have not been working properly.

We also have a pfd plugin that stopped working correctly.

Updates were done on the 12/08/2022

$config = '3.28.22';
$config = 366;
$config = 220802;
$config = true;
$config = 3;
$config = '30250';

And on the 23/08/2022
$config = '3.28.23';
$config = 366;
$config = 220809;
$config = true;
$config = 3;
$config = '30251';

The token fields worked on the 17th but not on the 22nd and I have no idea where to look for the cause of the issue. I did the second update as I thought it would resolve the issue detected on the 22nd.
The updates may just be confounding the issue.
Last edit: 1 year 7 months ago by madvet. Reason: Fixed and error

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose