Welcome to the LimeSurvey Community Forum

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

EM special characters in email templates

  • Psonder
  • Psonder's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #191362 by Psonder
I'm trying to include some calculations in my basic admin notification email. However, any expression using the < > symbols don't pass validation and the characters are replace with the html equivalents (< by &lt; > by &gt;).

I know this has previously been an issue within HTML editors, which has been fixed since 2.05 build 140803, but it still appears to be a problem within the template editor.

Is there a setting or trick that I am missing? I would like to avoid creating new variables for these expressions. Example expression below:
Code:
{if(count(CIA_q01.NAOK,CIA_q02.NAOK,CIA_q03.NAOK,CIA_q04.NAOK,CIA_q05.NAOK,CIA_q06.NAOK,CIA_q07.NAOK,CIA_q08.NAOK,CIA_q09.NAOK,CIA_q10.NAOK,CIA_q11.NAOK,CIA_q12.NAOK,CIA_q13.NAOK,CIA_q14.NAOK,CIA_q15.NAOK,CIA_q16.NAOK)< 16,join("Client did not complete ",16-count(CIA_q01.NAOK,CIA_q02.NAOK,CIA_q03.NAOK,CIA_q04.NAOK,CIA_q05.NAOK,CIA_q06.NAOK,CIA_q07.NAOK,CIA_q08.NAOK,CIA_q09.NAOK,CIA_q10.NAOK,CIA_q11.NAOK,CIA_q12.NAOK,CIA_q13.NAOK,CIA_q14.NAOK,CIA_q15.NAOK,CIA_q16.NAOK)," item(s)."),"Client completed all items")}
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #191364 by DenisChenu
Replied by DenisChenu on topic EM special characters in email templates
With last version ?
If yes : please report the issue

Else : you can use lt/gt now

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.
  • Psonder
  • Psonder's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #191395 by Psonder
Replied by Psonder on topic EM special characters in email templates
Thank you for your reply. We are not quite using the latest version, but 3.17.3.

I have tried lt/gt but it does not validate.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #191397 by DenisChenu
Replied by DenisChenu on topic EM special characters in email templates

Psonder wrote: I have tried lt/gt but it does not validate.

I never see issue with usage of lt, gt, le or ge …

manual.limesurvey.org/Expression_Manager#Operators

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.
  • Psonder
  • Psonder's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #191401 by Psonder
Replied by Psonder on topic EM special characters in email templates
You were right, I got it to work, thanks again!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose