Welcome to the LimeSurvey Community Forum

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

Can I conditionally send admin notification?

  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 1 month ago #212345 by blocka
I have a use case where I need an email sent to the survey admin, but only in the case where certain conditions are true in the survey. Is there a way to send admin email only certain condition is true (like a question that asks "Do you want us to follow up with you by phone?" And if answer is Yes, then the admin notification email is sent? And if No, then admin isn't sent?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago #212350 by tpartner
Replied by tpartner on topic Can I conditionally send admin notification?
Yes, you can use Expression Manage/Script in the notification email settings.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
  • blocka
  • blocka's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
3 years 1 month ago #212351 by blocka
Excellent, I will test this out. I assume then if the template message body is empty due to the condition returning an empty value, the admin notification won't be sent, or do I also need to have the condition in the subject line?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 1 month ago - 3 years 1 month ago #212355 by DenisChenu
Replied by DenisChenu on topic Can I conditionally send admin notification?
No : use expressio directly inside notification email : manual.limesurvey.org/Notifications_%26_..._notifications_email

For example {if(Q01 > 1, 'userOK@example.org',if(Q01 < -1, 'userOK@example.org',''))}

My advice : use an equation quetsion directly , and just put {MyEquationEmail} in the setting.

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 .
I don't answer to private message.
Last edit: 3 years 1 month ago by DenisChenu.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose