Welcome to the LimeSurvey Community Forum

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

Different e-mail on dropdown box choice

More
11 years 3 weeks ago #112423 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.
The following user(s) said Thank You: ausaec
The topic has been locked.
More
11 years 3 weeks ago #112428 by ausaec
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.
More
11 years 3 weeks ago #112433 by tpartner
See "Notification & data management", item 1.4 "Enter a valid expression conforming to Expression Manager syntax" - www.limesurvey.org/manual/Survey_setting..._.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.
More
11 years 3 weeks ago #112436 by HighFlyerPL185

tpartner wrote: See "Notification & data management", item 1.4 "Enter a valid expression conforming to Expression Manager syntax" - www.limesurvey.org/manual/Survey_setting..._.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.
More
11 years 3 weeks ago #112438 by tpartner
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:

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.
The following user(s) said Thank You: HighFlyerPL185, polux89
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose