Welcome to the LimeSurvey Community Forum

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

Conditional insert image fails due to <span id='LEMtailor_Q ... insertion

  • BelaMulder
  • BelaMulder's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 9 months ago #137259 by BelaMulder
Hi,

I am trying to conditionally insert an image into a question text using an EM expression. In the past this would work. Now (running version Version 2.50+ Build 160602), however, this fails because the (otherwise correct) string gets decorated by a <span id='LEMtailor_Q_ .. ></span>, which of course breaks the <img>.

Here is the (pseudo)code I am using:

<img alt=" " src="/path/to/my/image/directory/{if((QUESTION>NAOK=='1'),'image1.png','image2.png)}" />

Any help deeply appreciated
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 9 months ago #137276 by DenisChenu
If QUESTION is in nthe same page : you need to use javascript.

We need the span to update the equation in it the same page.

Denis

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