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
6 years 3 weeks ago - 6 years 3 weeks 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: 6 years 3 weeks ago by bismark.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 3 weeks 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
6 years 3 weeks 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
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 3 weeks 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 & Official Partner
  • LimeSurvey Community Team & Official Partner
More
6 years 3 weeks 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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose