- Posts: 5
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Different e-mail on dropdown box choice
- HighFlyerPL185
- Topic Author
- Offline
- New Member
Less
More
9 years 7 months ago #112423
by HighFlyerPL185
Different e-mail on dropdown box choice was created by HighFlyerPL185
Hi,
I want to be able for a user to submit the form to different e-mail addresses and people, depending on what they have chosen in a dropdown box. For example, if the user chooses Option 1, mail to john.smith@hotmail.com. However, if the user chooses Option 2, send the form to test@gmail.com.
I want to be able for a user to submit the form to different e-mail addresses and people, depending on what they have chosen in a dropdown box. For example, if the user chooses Option 1, mail to john.smith@hotmail.com. However, if the user chooses Option 2, send the form to test@gmail.com.
The following user(s) said Thank You: ausaec
The topic has been locked.
- ausaec
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
9 years 7 months ago #112428
by ausaec
Replied by ausaec on topic Different e-mail on dropdown box choice
That is something we would find quite useful also as we are going to expand our forms to international and depending on country, this would be a great option to have. Looking forward to results
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
9 years 7 months ago #112433
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 Different e-mail on dropdown box choice
See "Notification & data management", item 1.4 "Enter a valid expression conforming to Expression Manager syntax" -
manual.limesurvey.org/Survey_settings#No..._.26_data_management
.
.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- HighFlyerPL185
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
9 years 7 months ago #112436
by HighFlyerPL185
Hi,
Thanks for your reply. So do you enter the syntax into 'detailed admin notification' field? Do you have any examples please?
Replied by HighFlyerPL185 on topic Different e-mail on dropdown box choice
tpartner wrote: See "Notification & data management", item 1.4 "Enter a valid expression conforming to Expression Manager syntax" - manual.limesurvey.org/Survey_settings#No..._.26_data_management
.
Hi,
Thanks for your reply. So do you enter the syntax into 'detailed admin notification' field? Do you have any examples please?
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
9 years 7 months ago #112438
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 Different e-mail on dropdown box choice
Yes, either in the "Send basic admin notification email to" or "Send detailed admin notification email to" fields.
For example, if the question code for the drop-down is "Q1" and the answer codes are "A1, A2, A3", then something like this:
For example, if the question code for the drop-down is "Q1" and the answer codes are "A1, A2, A3", then something like this:
Code:
{if(Q1 == 'A1', 'tom@example.com', if(Q1 == 'A2', 'dick@example.com', if(Q1 == 'A3', 'harry@example.com', '')))}
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The following user(s) said Thank You: HighFlyerPL185, polux89
The topic has been locked.