- Posts: 185
- Thank you received: 11
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Put radio button answer into subject & body of detailed admin notification
- bulgin
- Topic Author
- Offline
- Elite Member
Less
More
4 years 5 months ago #190933
by bulgin
Put radio button answer into subject & body of detailed admin notification was created by bulgin
Hello. I've been searching the documentation but am having difficulty getting this to work.
Conducting a survey for an elder center where the participants choose what "station" they last saw a nurse occupying.
I have a radio button question called "station"
the answers are numbered 1,2,3,4,5,6,7,8.
So:
Question Code: station
Answer codes: 1,2,3,4,5,6,7,8
When I input {station} into subject line of detailed admin notification I get the "number" or 2 on the subject line and the body of the message, which contained {VERIFICATION} contains that actual word "VERIFICATION".
I think the number 2 in the subject is correctly identifying the correct radio button number 2, but I need the "Answer options" not the code to show.
And I have no idea why anything isn't showing up in the body of the message.
What is explained here doesn't work:
www.limesurvey.org/forum/design-issues/9...iple-choice-question
Nor does what is explained here:
Conducting a survey for an elder center where the participants choose what "station" they last saw a nurse occupying.
I have a radio button question called "station"
the answers are numbered 1,2,3,4,5,6,7,8.
So:
Question Code: station
Answer codes: 1,2,3,4,5,6,7,8
When I input {station} into subject line of detailed admin notification I get the "number" or 2 on the subject line and the body of the message, which contained {VERIFICATION} contains that actual word "VERIFICATION".
I think the number 2 in the subject is correctly identifying the correct radio button number 2, but I need the "Answer options" not the code to show.
And I have no idea why anything isn't showing up in the body of the message.
What is explained here doesn't work:
www.limesurvey.org/forum/design-issues/9...iple-choice-question
Nor does what is explained here:
The topic has been locked.
- bulgin
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 5 months ago #190934
by bulgin
Replied by bulgin on topic Put radio button answer into subject & body of detailed admin notification
I see here:
manual.limesurvey.org/Email_templates#Email_templates_fields
all the information/fields that can be contained in an email template, but it would appear that the fields I need cannot go in there.
Is that correct?
manual.limesurvey.org/Email_templates#Email_templates_fields
all the information/fields that can be contained in an email template, but it would appear that the fields I need cannot go in there.
Is that correct?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 5 months ago #190936
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Put radio button answer into subject & body of detailed admin notification
To display the answer label instead of the code, use {station.shown}.
- manual.limesurvey.org/Expression_Manager...#Access_to_variables
I don't know about "VERIFICATION". Where is that from?
- manual.limesurvey.org/Expression_Manager...#Access_to_variables
I don't know about "VERIFICATION". Where is that from?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- bulgin
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 5 months ago - 4 years 5 months ago #190950
by bulgin
Replied by bulgin on topic Put radio button answer into subject & body of detailed admin notification
Sorry "verification" is my name for the "station" example field. However, when I do enter {verification.shown} the subject line for the administrator emaill subject the following html code displaying on the received email:
Response submission for survey plus <span class='em-expression em-haveerror' ><span class='em-error'><span title='Undefined variable' class='em-var em-var-error' >VERIFICATION</span></span><span class='em-error'> : </span><span class='em-error'><span title='Undefined variable' class='em-var em-var-error' >SHOWN</span></span></span>
Response submission for survey plus <span class='em-expression em-haveerror' ><span class='em-error'><span title='Undefined variable' class='em-var em-var-error' >VERIFICATION</span></span><span class='em-error'> : </span><span class='em-error'><span title='Undefined variable' class='em-var em-var-error' >SHOWN</span></span></span>
Last edit: 4 years 5 months ago by bulgin.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 5 months ago #190952
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Put radio button answer into subject & body of detailed admin notification
1. shown not SHOWN
2. Are you sure to have a single question with code VERIFICATION, maybe it's verification ?
2. Are you sure to have a single question with code VERIFICATION, maybe it's verification ?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
4 years 5 months ago #190969
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Put radio button answer into subject & body of detailed admin notification
To Denis' point, all variable names are case-sensitive.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- bulgin
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 185
- Thank you received: 11
4 years 5 months ago #190981
by bulgin
Replied by bulgin on topic Put radio button answer into subject & body of detailed admin notification
SOLVED: you are correct: my capitalization was not needed. Now it works. Thanks for the help.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
4 years 5 months ago #190987
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Put radio button answer into subject & body of detailed admin notification
Next time : best is to send some sreenshot and clean information …
Here : we found it blind …
Here : we found it blind …
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.