Email Results

More
4 months 3 weeks ago #167971 by salter
salter created the topic: Email Results
Can I email results to certain users based on result of a question?

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167972 by holch
holch replied the topic: Email Results
It depends on what you define as "certain users".

You can use the two different admin notification emails to send emails to certain addresses. In the field you can use Expression Manager to determine whether the result should be sent and to whom it should be sent.

In the email template for those two different types of admin notifications you can insert the results via Expression Manager as well.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167974 by salter
salter replied the topic: Email Results
I think that's what I'm looking to do. I have a survey used by three locations. one of the questions is "Location"
So, if location A is selected, send results to UserA.

Is this what you are saying I can do?

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167975 by holch
holch replied the topic: Email Results
yes, this is doable. So you know the 3 different emails before, then you have a question with the 3 different locations.

Now you need to write an expression into the email field of the admin notification that gives you the correct email it should be sent to, depending on the location question.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167976 by holch
holch replied the topic: Email Results
Something like (not tested):
{if(location==A; "userA@email.tld"; if(location==B; "userB@email.tld"; if(location==C; "userC@email.tld"; "")}

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167977 by salter
salter replied the topic: Email Results
Thank you so much, I will give it a try. I would enter this in the "Send detailed admin notification email to:" field of the Survey Notification and Data Section?

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167978 by holch
holch replied the topic: Email Results
Exactly. But you will of course have to adapt this to your survey. The overall logic should be correct, but I am not sure if I did some mistake somewhere with ";" vs ",", the () etc. You will have to have a look at the right syntax in the manual for the Expression Manager.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167979 by salter
salter replied the topic: Email Results
Understood, thanks for pointing me in the right direction. I will post my results.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago - 4 months 3 weeks ago #167980 by holch
holch replied the topic: Email Results
You might or might not need the {}, I am never sure where you need them and where you don't.

But I already found some errors in my code. There are definitely missing some closing ")" and I think the semi colon needs to be actually a comma ( manual.limesurvey.org/Expression_Manager#Implemented_Functions ).
This should be better:
{if(location==A, "userA@email.tld", if(location==B, "userB@email.tld", if(location==C, "userC@email.tld", "")))}

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds
Last Edit: 4 months 3 weeks ago by holch.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167981 by salter
salter replied the topic: Email Results
Tried every variation doesn't seem to work.
So I tried a simple one
{if(Facility==A, "my address","my address")} hoping that right or wrong I should have received an email, but I didn't.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167982 by holch
holch replied the topic: Email Results
So "Facility" is the question code for the questions with the facility location? And "A" is the answer code for some of the answers?

Can you upload an .LSS file with just the relevant parts of the survey?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167983 by holch
holch replied the topic: Email Results
By the way: Which version of LS are you using and does sending emails work with your installation in general?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167984 by holch
holch replied the topic: Email Results
You probably have to put A into "". With numbers you don't need to.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167985 by salter
salter replied the topic: Email Results
Here you go.
Yes, email does work correctly on this system.

Please Log in or Create an account to join the conversation.

More
4 months 3 weeks ago #167986 by holch
holch replied the topic: Email Results
What does "Here you go." mean? Did you want to send something? No attachement.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!