- Posts: 39
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Text Elements in Response E-Mail based on answers in survey
- halliballi123
- Topic Author
- Offline
- Junior Member
Less
More
3 years 6 months ago #205675
by halliballi123
Text Elements in Response E-Mail based on answers in survey was created by halliballi123
Hello,
I have options questions in my survey that only use images (question design = image_select).
When I send the response e-mail to the participant it would be great if I could make a replacement for "option 1" to "great that you chose this bla bla bal" and if "option 2" was chosen "some other text"
The only thing that I found out was {INSERTANS:389855X1369X14538} which gave me the url to the images I was using for the options.
Thank you.
I have options questions in my survey that only use images (question design = image_select).
When I send the response e-mail to the participant it would be great if I could make a replacement for "option 1" to "great that you chose this bla bla bal" and if "option 2" was chosen "some other text"
The only thing that I found out was {INSERTANS:389855X1369X14538} which gave me the url to the images I was using for the options.
Thank you.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12789
- Thank you received: 3940
3 years 6 months ago #205684
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Text Elements in Response E-Mail based on answers in survey
Hi, halliballi,
don't use this "outdated" INSERTANS stuff.
Use "Expression Manager/Script".
Like this:
{if(Q1==1,"You selected picture ABC","You selected picture DEF")}
Joffm
don't use this "outdated" INSERTANS stuff.
Use "Expression Manager/Script".
Like this:
{if(Q1==1,"You selected picture ABC","You selected picture DEF")}
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: halliballi123
The topic has been locked.
- halliballi123
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 39
- Thank you received: 1
3 years 6 months ago - 3 years 6 months ago #205700
by halliballi123
Replied by halliballi123 on topic Text Elements in Response E-Mail based on answers in survey
Thank you very much that works.
For other users who might face the same problem.
If your values are not numbers you need quotation marks.
{if(Q1=="1a","You selected picture ABC","You selected picture DEF")}
And the Q1 is the code that you entered when you created the question in your survey. (I first tried the id of the question and put the q in front of the id :blink: )
And the expression validation works only after saving your code ...
For other users who might face the same problem.
If your values are not numbers you need quotation marks.
{if(Q1=="1a","You selected picture ABC","You selected picture DEF")}
And the Q1 is the code that you entered when you created the question in your survey. (I first tried the id of the question and put the q in front of the id :blink: )
And the expression validation works only after saving your code ...
Last edit: 3 years 6 months ago by halliballi123.
The topic has been locked.