Welcome to the LimeSurvey Community Forum

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

[SOLVED]Send email notifications based on an answer to a question [condition]

More
7 years 2 months ago #158257 by dotxm
The need
Send a detailed message to the survey admin, if a specific question gets a specific answer

The solution
Instead of an email address, put a condition like so:
{if(QUESTIONCODE.code=="ANSWERCODE","EMAIL","")}

The text you need to change is in orange.

Example implementation (tested on 2.67.3):
Code:
{if(RequestsContact.code=="Y","someone@somewhere.com","")}

The option is under:
'Survey properties > General settings & texts > Notification & data management > Send detailed admin notification email to:'


Having spent too much time on finding the correct way and syntax for this simple implementation, I am putting it here in a new thread.

I will put the answer in the original thread as well. It is 5 years old, so it is best to have an updated one, methinks.


All the best,
Dotan
The following user(s) said Thank You: lemonlimebitters
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose