EM special characters in email templates

More
2 months 21 hours 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")}

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
2 months 16 hours 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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks 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.

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks 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 .
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in or Create an account to join the conversation.

More
1 month 4 weeks ago #191401 by Psonder
You were right, I got it to work, thanks again!

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!