- Posts: 409
- Thank you received: 34
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Can I conditionally send admin notification?
- blocka
- Topic Author
- Offline
- Platinum Member
Less
More
3 years 1 month ago #212345
by blocka
Can I conditionally send admin notification? was created 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
3 years 1 month ago #212350
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 409
- Thank you received: 34
3 years 1 month ago #212351
by blocka
Replied by blocka on topic Can I conditionally send admin notification?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
3 years 1 month ago - 3 years 1 month ago #212355
by DenisChenu
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.
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.
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.