send email based on answers

More
1 month 2 weeks ago - 1 month 2 weeks ago #200069 by holch
Replied by holch on topic send email based on answers
If the image that Denis posted is your "html" code, then this is insane!

Why using a different span tag for each different style? I don't think it can work the way it is.

Also, HTML code within Expressions is always a little tricky.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Last edit: 1 month 2 weeks ago by holch.

Please Log in to join the conversation.

More
1 month 2 weeks ago #200076 by DenisChenu
I import attahched lss, and look at email …

Yes : it's insane
Seems to be a copy/paste from word.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
1 month 1 week ago #200454 by srn122
Replied by srn122 on topic send email based on answers
yes, that was a mistake.

I ve tried many options, didnt work either.

I ve also posted a clean formatted html code, if you missed it. I did it according to w3schools html tags:

<html>
<head>
<title></title>
</head>
<body>{if(Q3=="A1" AND Q4=="A1" AND Q5=="A1" AND Q6=="A1","TEXTTEXTTEXT","TEXTTEXTTEXTT
<ul>
<li>OPTION1OPTION1.</li>
<li>OPTION2OPTION2</li>
<li>OPTION3OPTION3.</li>
</ul>
")}</body>
</html>

Please Log in to join the conversation.

More
1 month 1 week ago #200459 by Joffm
Replied by Joffm on topic send email based on answers
The main thing to consider - if you have HTML styling inside your IF-statement - is to avoid nested quotes.

So this
{if(Q1==1,"span style="color=red">Yes", "No")} won't work.
You have to use single quotes and double quotes
{if(Q1==1,'span style="color=red">Yes', 'No')}.

And:
Sometimes the editor changes single quotes to double quotes. Take care.

Joffm


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

Please Log in to join the conversation.

More
1 month 1 week ago #200464 by holch
Replied by holch on topic send email based on answers
And I think you are not supposed to include the HTML header and body tags, because I think Limesurvey inserts this automatically.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now