Welcome to the LimeSurvey Community Forum

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

send email based on answers

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200049 by DenisChenu
Replied by DenisChenu on topic send email based on answers
1. Previous lss is broken …
2. there are issue in quote system.
3. Sample light lss

ligtht : because else : you can open a support ticket …

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.
The topic has been locked.
  • srn122
  • srn122's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 10 months ago #200053 by srn122
Replied by srn122 on topic send email based on answers
it should be ok though, some people here already helped me with it.

My limesurvey version is Version 3.6.1, I dont see any sample light lss ...

Maybe I dont understand what you re saying..


Anyway, the issue is with the basic admin notification email:

If I try to use an expression like:

if ("some answer conditions","send this message","else send this message")

In the messages to be sent, I need the text a little bit formatted, but once I try to use html tags, it sends only blank emails.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago - 3 years 10 months ago #200055 by DenisChenu
Replied by DenisChenu on topic send email based on answers
The previous less are not up to date.


Else : do the logic in text mode edition

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.
Last edit: 3 years 10 months ago by DenisChenu.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago - 3 years 10 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.

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

Last edit: 3 years 10 months ago by holch.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 10 months ago #200076 by DenisChenu
Replied by DenisChenu on topic send email based on answers
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.
The topic has been locked.
  • srn122
  • srn122's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 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.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 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.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 9 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.

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

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose