Can I send email conditionally, based on a question response?

More
1 month 1 week ago #191919 by Kyler_Hunter
Dude you are awesome! It worked!

On a slight side note the generated answer table ...well it sucks. To much info and the formatting is terrible. Is there a way to use Expression Manager to pull the Questions , sub-question and answers and format them the way I want and not have to go into the actual PHP code (we're not suppose to but I don't want to say no we cannot)?

Example :
"Question:
- Sub-Question: Answer"


Thanks

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

More
1 month 1 week ago #191921 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

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

More
1 month 1 week ago - 1 month 1 week ago #191964 by Kyler_Hunter
tpartner,

I love clients. New requirement is that any of the rating question now if answered 8 or lower send an email. I've tried various combinations of the code you gave me and as long as only one of the question is 8 or below we get the email, but if all ratings are 8 or below no email shows up.

I've tried the following:
{if(intval(P1Q1_SQ001) <= 8, if (P1Q2_SQ001) <= 8, if(P1Q3_SQ001) <= 8, "someone@somewhere.com", ""))))}
and
{if(intval(P1Q1_SQ001) <= 8, "someone@somewhere.com", "")}{if(intval(P1Q2_SQ001) <= 8, "someone@somewhere.com", "")}{if(intval(P1Q3_SQ001) <= 8, "someone@somewhere.com", "")}
Is there a way to write this so the email gets sent if any combination occurs?
Last edit: 1 month 1 week ago by Kyler_Hunter.

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

More
6 days 3 hours ago #192726 by kate92
I have similar problem. I'm trying to send detailed admin mail but based on an answer to a specific question. The problem is, the answer is short text, situation description.

How should I change this:

{if(QUESTIONCODE.code=="ANSWERCODE","EMAIL","")}.

My questioncode is P11, question tipe is short text (Describe situation). And the answer is situation description.

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

More
6 days 3 hours ago #192728 by tpartner
So, you want to send the email if anything is entered in P11?

In that case:

{if(!is_empty(P11), "EMAIL", "")}

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

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

More
6 days 2 hours ago #192730 by kate92

tpartner wrote: So, you want to send the email if anything is entered in P11?

In that case:

{if(!is_empty(P11), "EMAIL", "")}



Yes. I'll try that tomorrow. I would also like to add a coleage as admin for this survey but I have some odl versin 2.67.1+sometnig and don't have configation tab, so...

Thank you very much for the help!!!

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

More
5 days 16 hours ago #192732 by Joffm
Hi,
you really don't have this?




Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

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

More
4 days 7 hours ago - 4 days 6 hours ago #192798 by kate92

Joffm wrote: Hi,
you really don't have this?





Joffm


I do have that.
I don't have this:



And when I go to the Survey permission and want to add a user, it dosen't allow me. It says, "please choose a user". And when I want to choose, there aren't any! What am I doing wrong?!
My survey doesn't use TOKEN. It uses name and password from a third app.

The sugestion with IF statement did't work. Maybe I should put semicolon like I do in excel?
Attachments:
Last edit: 4 days 6 hours ago by kate92. Reason: double screenshot

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!