Welcome to the LimeSurvey Community Forum

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

Could I send notification email to different person according to answer result?

  • zhouybox
  • zhouybox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #147666 by zhouybox
Could I send notification email with the complete answers to different preset person according to answer result?How to make it?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago - 7 years 3 months ago #147679 by tpartner
You can use Expression Manager in the "Send basic admin notification email to" or "Send detailed admin notification email to" fields. Something like this:

Code:
{if(Q1 == 'A1', 'example1@example.net', 'example2@example.net')}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 7 years 3 months ago by tpartner.
The following user(s) said Thank You: zhouybox
The topic has been locked.
  • zhouybox
  • zhouybox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #147697 by zhouybox
Thank you very much! It works!
If I want to send detailed information to several email addresses.How can I write the code?
for example:
{example1@example.net}{example2@example.net}
{Q1.NAOK},{example1@example.net}
{'Q1.NAOK','example1@example.net'}
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #147700 by tpartner
Sorry, I don't understand your example - you seem to be using the same address for everything and don't have a value for Q1.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • zhouybox
  • zhouybox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #147701 by zhouybox
Yes.I want to let the participants receive their own results.These participants are divided into different areas.Each area has its own administrator.These administers should receive the corresponding results.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #147703 by tpartner
Please refer to the manual - manual.limesurvey.org/Survey_settings#No..._.26_data_management

You can send to multiple addresses by seperating the entries with a semicolon.

So, if for example, you are using tokens and want to send to the respondent and one of two other people depending on the answer to Q1, it would look something like this:

Code:
{TOKEN:EMAIL};{if(Q1 == 'A1", 'example1@example.net', 'example2@example.net')}

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: zhouybox
The topic has been locked.
  • zhouybox
  • zhouybox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #147724 by zhouybox
I found that the notifications of detailed information include questions with coding words.How can I avoid showing the coding words,while remaining the question?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 3 months ago #147744 by tpartner
You can modify the email template with Expression Manager variables.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • zhouybox
  • zhouybox's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 3 months ago #147799 by zhouybox
Thank you! I not good at writing codes.The "printansers" function presents good report without codes.How can I use it for email notification?Or can I code it in email template?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose