Welcome to the LimeSurvey Community Forum

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

Conditional text in Notification Emails

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
6 years 7 months ago #157626 by blocka
I'd like to be able to customize the text in admin notification emails based on the answers to one or more questions.

I'm imaging something like this in the body text:

IF Q1="Y" and Q3="Male" {

custom text related to this response
}
else

{some other text}

Is there a way to do this?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 7 months ago #157630 by tpartner
Replied by tpartner on topic Conditional text in Notification Emails
The Expression Manager syntax for that would be:

Code:
{if(Q1 == 'Y' AND Q3 == 'Male', 'Custom text related to this response', 'Some other text')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose