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
  • HighFlyerPL185's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 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.
The following user(s) said Thank You: ausaec
The topic has been locked.
More
9 years 6 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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112433 by tpartner
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
  • HighFlyerPL185's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #112436 by HighFlyerPL185
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
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112438 by tpartner
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:

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.

Lime-years ahead

Online-surveys for every purse and purpose