Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

send email based on answers

More
5 years 3 months ago - 5 years 3 months 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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
Last edit: 5 years 3 months ago by holch.
The topic has been locked.
More
5 years 3 months 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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
5 years 2 months 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>
The topic has been locked.
More
5 years 2 months 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
The topic has been locked.
More
5 years 2 months 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.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose