Put radio button answer into subject & body of detailed admin notification

More
1 month 11 hours ago #190933 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:

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 month 8 hours ago #190934 by bulgin
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?

Please Log in or Create an account to join the conversation.

More
1 month 4 hours ago #190936 by tpartner
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?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago - 4 weeks 1 day ago #190950 by bulgin
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>
Last edit: 4 weeks 1 day ago by bulgin.

Please Log in or Create an account to join the conversation.

More
4 weeks 1 day ago #190952 by DenisChenu
1. shown not SHOWN
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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
4 weeks 21 hours ago #190969 by tpartner
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.
Official LimeSurvey Partner - partnersurveys.com

Please Log in or Create an account to join the conversation.

More
4 weeks 12 hours ago #190981 by bulgin
SOLVED: you are correct: my capitalization was not needed. Now it works. Thanks for the help.

Please Log in or Create an account to join the conversation.

More
4 weeks 3 hours ago #190987 by DenisChenu
Next time : best is to send some sreenshot and clean information …

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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!