Welcome to the LimeSurvey Community Forum

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

Line return with EM function

  • jltrussart11
  • jltrussart11's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 10 months ago #153202 by jltrussart11
Line return with EM function was created by jltrussart11
Hi,


I'm trying to optimise the layout of a report with EM function. I'm looking towards to add line returns to the report.


1) Is their a way to add a line return <br> in a LIST function or the data can only be separated by a coma?

I use this fonction {list(that.EngagementInteractiv .shown,EngagementInteractiv _other.NAOK)}


2) In a IF function I actually use a join function to display an string (SQ002 example). I would like to add each data in a html list. I can't manage to use htmlentities or html_entity_decode to use an <li> or an <br>
Code:
 
<ul>
{if(Local_SQ001.NAOK == 'U',join(html_entity_decode('<li>'),"Le mobilier où seront assis les participants peut être facilement déplacé.",html_entity_decode('</li>')), "")}{if(Local_SQ002.NAOK == 'U',join("Le local est équipé d'outils de diffusion vidéo (exemple: projecteur ou téléviseur) qui permettront aux gens de bien voir la présentation."), "")} 
</ul>
 

Thans for your precious help!
The topic has been locked.
  • jltrussart11
  • jltrussart11's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 10 months ago #153525 by jltrussart11
Replied by jltrussart11 on topic Line return with EM function
Anybody have an idea to manage the lines returns?

Thanks in advance for your precious help!
The topic has been locked.
More
6 years 10 months ago #153527 by Ben_V
Replied by Ben_V on topic Line return with EM function

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: jltrussart11
The topic has been locked.
  • jltrussart11
  • jltrussart11's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
6 years 10 months ago #153528 by jltrussart11
Replied by jltrussart11 on topic Line return with EM function
Thanks a lot! I will take a look to this thread!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose