- Posts: 185
- Thank you received: 11
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
- Topic Author
- Offline
- Elite Member
Less
More
4 years 7 months ago #187483
by bulgin
Need participant attribute_1 in admin emails was created 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?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12785
- Thank you received: 3940
4 years 7 months ago #187484
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Need participant attribute_1 in admin emails
Hi, bulgin,
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
if your spelling is correct, it's a simple GIGO issue.as either {token:attribute_1}
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
4 years 7 months ago #187497
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Need participant attribute_1 in admin emails
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12785
- Thank you received: 3940
4 years 7 months ago #187500
by Joffm
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Need participant attribute_1 in admin emails
Therefore ("it is just some text message" I thought of the body text and not the address fieldas 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.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- bulgin
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 7 months ago #187509
by bulgin
Replied by bulgin on topic Need participant attribute_1 in admin emails
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12785
- Thank you received: 3940
4 years 7 months ago #187511
by Joffm
I think this is exactly what I showed you.
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Need participant attribute_1 in admin emails
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 7 months ago #187526
by bulgin
Replied by bulgin on topic Need participant attribute_1 in admin emails
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.
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 7 months ago - 4 years 7 months ago #187527
by bulgin
Replied by bulgin on topic SOLVED:Need participant attribute_1 in admin emails
the word token must be CAPITALIZED and not the actual token but just the word "TOKEN".
Just as Joffm indicated.
Thanks Joffm.
Just as Joffm indicated.
Thanks Joffm.
Last edit: 4 years 7 months ago by bulgin.
The topic has been locked.