Conditional text in Notification Emails

More
2 months 1 week ago #157626 by blocka
blocka created the topic: Conditional text in Notification Emails
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?

Please Log in to join the conversation.

More
2 months 6 days ago #157630 by tpartner
tpartner replied the topic: Conditional text in Notification Emails
The Expression Manager syntax for that would be:

{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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now