EM special characters in email templates

More
1 year 2 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:
{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.
LimeSurvey Partners
More
1 year 2 months ago #191364 by DenisChenu
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.
More
1 year 2 months ago #191395 by Psonder
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.
More
1 year 2 months ago #191397 by DenisChenu

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.
More
1 year 2 months ago #191401 by Psonder
You were right, I got it to work, thanks again!
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now