Welcome to the LimeSurvey Community Forum

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

show groups on condition

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago - 3 years 4 months ago #224484 by Joffm
Replied by Joffm on topic show groups on condition
Hi,
1. Here a small example how to taylor your questions S1.
I only did it for 5 instead for 16 and only for the first row "Kosten".
But you see, how it works.
 
This way you have only one question instead of 16. and the same for the Switches.

2. Please read the manual about "access to variables", "implemented functions" and the "this", "self" and "that" variables.
[url] www.limesurvey.org/manual/ExpressionScri...#Access_to_variables [/url]
[url] www.limesurvey.org/manual/ExpressionScri...mplemented_functions [/url]
[url] www.limesurvey.org/manual/ExpressionScri....22that.22_variables [/url]


This can be improved:
Do not use the INSERTANS - stuff, use Expression Manager!

And here two examples:
a. Bagage maat was: {if(LuggageGrocery =="A1", "lichte bagage")}{if(LuggageGrocery =="A2", "bagage van gemiddeld gewicht")}{if(LuggageGrocery =="A3", "zware bagage")}{if(LuggageGrocery =="A4", "neen")}

Better: 
Bagage maat was: {LuggageGrocery.shown}

b: De weer was: {if(WeatherGrocery_SQ001 =="Y","regen")} {if(WeatherGrocery_SQ002 =="Y","lichte wind")} {if(WeatherGrocery_SQ003 =="Y","sterke wind")} {if(WeatherGrocery_SQ004 =="Y","mist")} {if(WeatherGrocery_SQ005 =="Y","zonnig")} {if(WeatherGrocery_SQ006 =="Y","bewolkt")} {if(WeatherGrocery_SQ007 =="Y","sneeuw")} {if(WeatherGrocery_SQ008 =="Y","onweer")} {if(WeatherGrocery_SQ009 =="Y","niets / weet niet")}

Better: 
De weer was: {list(that.WeatherGrocery.shown)}

3. If you revise your table and use a border instead of the cell with width="0" you get a better display.
 

Furthermore remove these <span><span><span>
Like this line
<p><span style="font-size: 11pt;"><span style="line-height: normal;"><span style="font-family: Arial,sans-serif;"><span style="font-size: 14pt;"><span style="font-family: &quot;Calibri&quot;,sans-serif;"><span style="color: black;">3. Eventueel andere factoren hetzelfde zijn voor alle opties, aan uw wensen voldoen, en dus uw keuze niet beïnvloeden.</span></span></span></span></span></span></p>

First the font-size is set to 11pt, but later to 14pt without any reason. And the font-family set twice, too.

Maybe better you use <div> and define some classes in the <style>-section. 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 4 months ago by holch. Reason: LSS/image file removed based on a request from the original owner of the questionnare via admin notification
The following user(s) said Thank You: john_bons
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago - 3 years 4 months ago #224502 by Joffm
Replied by Joffm on topic show groups on condition
And with some - in my opinion better - styling (some classes and DIVs you can achieve this: And also in my opinion you should use Dutch everywhere.So replace "year", "month" and "h"  by "jaar", "maand" and "uur". And some typos.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 3 years 4 months ago by holch. Reason: LSS/image file removed based on a request from the original owner of the questionnare via admin notification
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #224519 by holch
Replied by holch on topic show groups on condition
Due to a request by the someone who claimed to be the original owner of this questionnaire to the moderators, have deleted the LSS files (and just to make sure also the screenshots).

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose