Email Results

More
4 months 3 weeks ago #167987 by salter
salter replied the topic: Email Results
Sorry about that, attachment didn't come over first time.
Attachments:

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

More
4 months 3 weeks ago #167988 by holch
holch replied the topic: Email Results
Just tried it with a simple example and it work. You have to activate your survey though for it to work. In preview mode it won't.

Here is what I used:
{if(G1Q1=="A", "email1@example.com", "email2@example.com")}

With G1Q1 being the code of the question where I ask about the location. I have two locations A and B, for Location A the answer code is "A" and for location B the answer code is "B". So when I click on Location A I receive and email to email1, in any other case (in this case there is just one option) the email goes to email2.

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 - 4 months 3 weeks ago #167989 by holch
holch replied the topic: Email Results
Please export a .lss file, not a txt file. The question alone doesn't help at all, because your error is most probably in the Expression at the admin notification email field, not the question.

So I need a complete survey as .lss file showing the expression you have put into that field as well as the question for the location to understand your structure.

If you don't want to upload your whole survey, that is OK (actually preferable). Just make a copy of your survey, delete everything that is not necessary and then export it.

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 #167990 by salter
salter replied the topic: Email Results
I attached my survey.

Thanks
Attachments:

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

More
4 months 3 weeks ago #167991 by holch
holch replied the topic: Email Results
I can't import your survey. It gives me some kind of error on importing it.

What version of Limesurvey are you using?

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 #167993 by holch
holch replied the topic: Email Results
I think the problem is the bounce email address, as it is not a correct email. Could you just delete what is in bounce email address and what is in Admin email addres completely from the survey (or put a dummy email address that matches criterias for emails) and export it again. I will try to correct it in the file you have sent, but not sure if this will work.

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
Attachments:

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

More
4 months 3 weeks ago #167994 by holch
holch replied the topic: Email Results
Managed to import a corrected version into LS 3.71.

I found some mistakes in your expression code:
{if(G1Q3=="Aberjona", "myaddress","myaddress")}

There is no question with the question code G1Q3 in your whole survey. You can't just take my question codes that I use in MY test survey and adapt it. You need to use the codes in your survey (or adapt your codes to my codes).

In addition, you can't just write the answer text into this, you need to use the answer codes (which in your case are A1, A2 and A3).

So the correct code for your test survey would be:
{if(Facility=="A1", "myaddress", "myaddress")}

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 #167995 by holch
holch replied the topic: Email Results
Here your sample survey with the corrections. If you substitute the dummy email addresses with the correct email addresses things should work (if the survey is activated).

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
Attachments:

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

More
4 months 3 weeks ago #167996 by salter
salter replied the topic: Email Results
The G1Q3 was my last attempt. Let me give it a try.

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

More
4 months 3 weeks ago #167997 by salter
salter replied the topic: Email Results
Working thank you so much. In my past attempts I almost had it but did not use quotes around "A1".

Thank you!

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

More
4 months 3 weeks ago #167998 by holch
holch replied the topic: Email Results
As I mentioned in one of the posts: If you use just numbers for the question code it will be considered a number and you don't need the ", but if you have a string, you need the ".

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!