Welcome to the LimeSurvey Community Forum

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

Expression Manager - smmary - end page - multiple choce

More
6 hours 33 minutes ago - 6 hours 32 minutes ago #273747 by ThomIJS
==================
Your LimeSurvey version:  LimeSurvey Cloud Versie 6.16.5
Own server or LimeSurvey hosting: LimeSurvey hosting
Survey theme/template: Fruity TwentyThree
==================
To summarize the questions and answers we are using the end page where you can use the expression manager to customize this page.
To display a multiple-choice question, we are currently using:
{if((count(that.Q01.NAOK) >0),Q01.question + ' ' + implode(', ',Q01_SQ002.shown,Q01_SQ003.shown))}This results in:
“What is the change about? Applications,”
  1. Is there an easy way to show all possible answers (i.e., all sub-questions)? We have some questions with 20+ possible answers and doing this manually would be very time-consuming.
  2. Is there an easy way to ensure that the result looks like this:
    • For a single answer:
      “What is the change about? Applications”
    • For multiple answers:
      “What is the change about? Applications, Connections”
Thank you very much in advance!
Last edit: 6 hours 32 minutes ago by ThomIJS.

Please Log in to join the conversation.

More
3 hours 33 minutes ago - 3 hours 32 minutes ago #273748 by Joffm
Hi,
it would be better you'd send the lss export of the survey.
 

But, what is "time consuming?

{if(!is_empty(that.Q1),Q1.question+':    '+Q1.shown,'')}

{if(count(that.Q2)>0,Q2.question+':    '+list(that.Q2.shown),'')}

These are the equations for the single and the multiple questions.
If the questions are mandatory (closed questions usually are), there is no need for "!is_empty" or "count".

And if there are more?
in a text editor copy and you only have to change the question code
 
This is done in minutes.

In my opinion most of the work is to develop a appealing looking layout with some HTML tables or bootstrap components

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 hours 32 minutes ago by Joffm.

Please Log in to join the conversation.

More
2 hours 5 minutes ago #273749 by Joffm
Addition:
And always consider to use appropiate coding to make it easy and smooth.

You see, here I used the ".sq" property to distinguish men and women.
{list(that.Q2.sq_M.shown)}
{list(that.Q2.sq_W.shown)}

Men have codes like M1, M2, ..., women W1, W2,...
 

You may read the manual about it.
[url] www.limesurvey.org/manual/ExpressionScri...#%22That%22_variable [/url]

And a bit bootstarp "cards".
[url] getbootstrap.com/docs/5.0/components/card/ [/url]

What I want to say: Think about your report before you start creating the survey. 
Later it may be cumbersome, if you used codes that don't really fit.
 
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose