Welcome to the LimeSurvey Community Forum

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

Basic admin notification with content based on answer

  • giorgio.papitto
  • giorgio.papitto's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 3 months ago #212926 by giorgio.papitto
Hi,

I set up a survey with a single choice question (three possible answers).

I would like to receive an email (Basic admin notification) with a message based on the answer provided by the participant. For example, if the participant checked the box corresponding to the text "Yes", I'd like to receive an email saying "The participant is willing to join this other study".

I was able to do this with a multiple choice survey, but with a single choice I really don't know what to do.

Do you have any idea?

 
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 3 months ago #212929 by holch
Assuming that your question has the question code "join", then you can use {join} and Limesurvey will display the answer code given to this question.

If you want it a bit more sophisticated, you could use {join.shown} which should give you the answer text to the chosen answer, e.g. "yes".
www.limesurvey.org/manual/Expression_Manager

Or you could use a formula like this, assuming that the answer code of "Yes" is "1"?
Code:
{if(join==1,"The participant is willing to join this other study", "The participant does NOT want to join this other study")}

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The following user(s) said Thank You: DenisChenu, giorgio.papitto
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose