Welcome to the LimeSurvey Community Forum

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

SOLVED:Need participant attribute_1 in admin emails

  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago #187483 by bulgin
Version 3.17.7+190627

Since I collect the participant's email during the survey, I've discovered that to send out personalized emails after a participant has finished the survey I must use a variable in one of the admin templates to do so - since I collect their email when they take the survey, and their email is thus not hard-coded into the participant table before they start the survey.


If I attempt to pull the attribute_1 data from a participant record as either {token:attribute_1} or {actual-token:attribute_1} as a placeholder in the admin emails, I get nothing. Just those letters. The data that is contained in the attribute_1 field (which is just some text message) does not show up.

Can this be accomplished?

Is there a step I'm missing using the "manage attributes" or CPDB feature?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #187484 by Joffm
Hi, bulgin,

as either {token:attribute_1}

if your spelling is correct, it's a simple GIGO issue.
As shown in the manual
manual.limesurvey.org/Expression_Manager...#Access_to_variables
the correct placeholder is {TOKEN:ATTRIBUTE_1}

And you get in in the email


Best regards
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
4 years 7 months ago #187497 by jelo
Joffm, your post didn't show if a TOKEN Attribute is working inside the email address field of the survey settings for admin notifications. You tested the email template.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #187500 by Joffm

as a placeholder in the admin emails, I get nothing. Just those letters. The data that is contained in the attribute_1 field (which is just some text message) does not show up.

Therefore ("it is just some text message" I thought of the body text and not the address field

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago #187509 by bulgin
Just to be clear: I *can* get the personalized email address from an email address question in the survey so that the admin email is actually sent to the captured email address from the email address question. That is not the issue. The issue is also including in the body of that personalized email the data from the attribute_1 field for that token user.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #187511 by Joffm

The issue is also including in the body of that personalized email the data from the attribute_1 field for that token user.


I think this is exactly what I showed you.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago #187526 by bulgin
Thank you for the help. I've attached screenshots of the workflow. The emails ARE being sent to the email address identified in the "send basic admin notification to:" email address pulled from the code in the mysql database (see 1.png).

What is NOT happening is the attribute_1 is not being inserted into the admin emails that are represented by image 4.png and 5.png.
The topic has been locked.
  • bulgin
  • bulgin's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
4 years 7 months ago - 4 years 7 months ago #187527 by bulgin
the word token must be CAPITALIZED and not the actual token but just the word "TOKEN".

Just as Joffm indicated.

Thanks Joffm.
Last edit: 4 years 7 months ago by bulgin.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose