- Posts: 17
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
7 years 3 months ago #147666
by zhouybox
Could I send notification email to different person according to answer result? was created 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
7 years 3 months ago - 7 years 3 months ago #147679
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 Could I send notification email to different person according to answer result?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
7 years 3 months ago #147697
by zhouybox
Replied by zhouybox on topic Could I send notification email to different person according to answer result?
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'}
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
7 years 3 months ago #147700
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 Could I send notification email to different person according to answer result?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
7 years 3 months ago #147701
by zhouybox
Replied by zhouybox on topic Could I send notification email to different person according to answer result?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
7 years 3 months ago #147703
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 Could I send notification email to different person according to answer result?
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:
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
7 years 3 months ago #147724
by zhouybox
Replied by zhouybox on topic Could I send notification email to different person according to answer result?
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
7 years 3 months ago #147744
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 Could I send notification email to different person according to answer result?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 17
- Thank you received: 0
7 years 3 months ago #147799
by zhouybox
Replied by zhouybox on topic Could I send notification email to different person according to answer result?
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.