- Posts: 7
- Thank you received: 0
- Forum
- English support forums
- Can I do this with LimeSurvey?
- Can I send email conditionally, based on a question response?
Can I send email conditionally, based on a question response?
- Kyler_Hunter
-
- Offline
- New Member
-
Less
More
1 year 1 month ago #191919
by Kyler_Hunter
Replied by Kyler_Hunter on topic Can I send email conditionally, based on a question response?
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
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
The topic has been locked.
Less
More
- Posts: 9782
- Thank you received: 3123
1 year 1 month 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
Replied by tpartner on topic Can I send email conditionally, based on a question response?
Yes, of course you can develop your own answers table/layout with Expression Manager.
- manual.limesurvey.org/Expression_Manager...n#Tailoring.2FPiping
- manual.limesurvey.org/Expression_Manager...swers.2C_and_Reports
- manual.limesurvey.org/Expression_Manager...red_on_the_same_page
- manual.limesurvey.org/Expression_Manager...n#Tailoring.2FPiping
- manual.limesurvey.org/Expression_Manager...swers.2C_and_Reports
- manual.limesurvey.org/Expression_Manager...red_on_the_same_page
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com
The topic has been locked.
- Kyler_Hunter
-
- Offline
- New Member
-
Less
More
- Posts: 7
- Thank you received: 0
1 year 1 month ago - 1 year 1 month ago #191964
by Kyler_Hunter
Replied by Kyler_Hunter on topic Can I send email conditionally, based on a question response?
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:andIs there a way to write this so the email gets sent if any combination occurs?
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", ""))))}
{if(intval(P1Q1_SQ001) <= 8, "someone@somewhere.com", "")}{if(intval(P1Q2_SQ001) <= 8, "someone@somewhere.com", "")}{if(intval(P1Q3_SQ001) <= 8, "someone@somewhere.com", "")}
Last edit: 1 year 1 month ago by Kyler_Hunter.
The topic has been locked.
1 year 3 days ago #192726
by kate92
Replied by kate92 on topic Can I send email conditionally, based on a question response?
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.
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.
The topic has been locked.
Less
More
- Posts: 9782
- Thank you received: 3123
1 year 3 days ago #192728
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
Replied by tpartner on topic Can I send email conditionally, based on a question response?
So, you want to send the email if anything is entered in P11?
In that case:
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
The topic has been locked.
1 year 3 days ago #192730
by kate92
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!!!
Replied by kate92 on topic Can I send email conditionally, based on a question response?
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!!!
The topic has been locked.
1 year 2 days ago #192732
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Can I send email conditionally, based on a question response?
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
1 year 1 day ago - 1 year 1 day ago #192798
by kate92
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?
Replied by kate92 on topic Can I send email conditionally, based on a question response?
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?
Last edit: 1 year 1 day ago by kate92. Reason: double screenshot
The topic has been locked.