Welcome to the LimeSurvey Community Forum

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

How to tell LME to not processing an expression?

  • bismark
  • bismark's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 3 months ago - 5 years 3 months ago #179301 by bismark
In a text I use a Javascript with a line like this

format: '{point.name}',

now LME recognizes an expression. How can I tell LME that it should be ignored?
Last edit: 5 years 3 months ago by bismark.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #179305 by tpartner
Insert a space after the opening brace and before the closing brace.

Code:
format: '{ point.name }',

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • bismark
  • bismark's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 years 3 months ago #179310 by bismark
thanks, this expression will be ignored correctly, but more expressions afterwrds will be ignored too
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #179313 by tpartner
Sorry, I don't understand the comment. Everything within the braces with spaces will be ignored by Expression Manager. Subsequent braces without spaces will be processed by EM.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #179349 by DenisChenu
Replied by DenisChenu on topic How to tell LME to not processing an expression?
Else,

Unsure it can work for javascript, but to make some doc on demo, i use HTML Entity Encode
Code:
{point.name}
but if it's for a jason javascript object : best is to add a line feed :)

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.

Lime-years ahead

Online-surveys for every purse and purpose