Welcome to the LimeSurvey Community Forum

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

Table showing prior answers

  • jma6610
  • jma6610's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 5 months ago #190109 by jma6610
Table showing prior answers was created by jma6610
I'm new so bare with the wording of this question:

Question 1 is a multiple choice question with around 5 possible answers.
Question 2 is a text display. I want to display the answer categories selected in Question 1 into Question 2 in either a bulleted list or similar display that contains no blank rows. I can do this easily other than having blank rows if one of the answer categories from Question 1 isn't selected. How do I get these to display without those blank rows.

Again, I hope I'm asking this in a meaningful way.

Best,
Jeff
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago - 4 years 5 months ago #190115 by DenisChenu
Replied by DenisChenu on topic Table showing prior answers
I think you must check relevance equation in sub-question edition

Or maybe array filter : manual.limesurvey.org/Question_type_-_Ar...r_.28array_filter.29


[Edit]
Oups : totally misunderstood the question …

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.
Last edit: 4 years 5 months ago by DenisChenu. Reason: Oups : totally misunderstood the question …
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #190118 by Joffm
Replied by Joffm on topic Table showing prior answers
Hi,

you can do it the easy way using the list-statement, or use the join-statement.
In the join-statement you can "join" some other elements you would like to see.



p1 = Code of multi question.
First row the simple "list(that.p1)"
Then this join-statement:
{join(if(p1_SQ001=="Y",' * '+p1_SQ001.shown+'<br> ',""), if(p1_SQ002=="Y",' * '+p1_SQ002.shown+'<br>',""), if(p1_SQ003=="Y", ' * '+p1_SQ003.shown+'<br>',""), if(p1_SQ004=="Y",' * '+p1_SQ004.shown+'<br>',""), if(p1_SQ005=="Y",' * '+p1_SQ005.shown+'<br>',""), if(p1_SQ006=="Y", ' * '+p1_SQ006.shown+'<br>',""))}

If you enter this into your editor, do in sorce code mode, save, and never, never, never open it again.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • jma6610
  • jma6610's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 5 months ago #190159 by jma6610
Replied by jma6610 on topic Table showing prior answers
Thanks, I got it to work. Is there no way to specify the listing/printing of a CRLF using an ASCII code - e.g. CHR(13) CHR(10) instead of the <br> code so that this does not convert to actual line breaks if the editor is closed/open ?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose