Welcome to the LimeSurvey Community Forum

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

Displaying 1 of 3 questions in a question group randomly

More
3 hours 10 minutes ago #274016 by LukrecjuszLiżma
Please help us help you and fill where relevant:
Your LimeSurvey version: LimeSurvey Cloud [url=https://lukrecjuszli--ma.limesurvey.net/admin/user/sa/personalsettings#modalSystemInformation] Version 6.16.14 [/url]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
I have trouble with displaying one of three questions, I already followed guidelines on randomization and everything looks neat but the problem still occurs. 

Please Log in to join the conversation.

More
3 hours 4 minutes ago #274017 by holch
You should tell us what the problem is. You just say there is a problem, but what is it? What did you try? What was the outcome?

The LSS file helps, but can only tell so much.

Will have a look at it later.

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.

Please Log in to join the conversation.

More
2 hours 17 minutes ago #274018 by holch
Very difficult to help you when you provide a questionnaire in a language that most of us don't speak and also do not delete the unnecessary parts.

I assume the questions you want to show 1 out of 3 randomly are the ones in the last question group? "Przykładowa sytuacja nr.1"?

So you created a question called "Randgroup". I assume that is where things should happen?

But it is at the end of this group, it is empty and it is referred to in questions that are before it, like in this relevance equation:
Code:
(ZGODa.NAOK == "Y") and (!is_empty(Q002.NAOK) && Q002.NAOK >= 18) and (RANDGROUP== 1)

So you only want to show this question if Randgroup==1. But Randgroup contains nothing in your example. So it can never be 1.

Also, Q002 is a text question, so the answers are stored as a text, but you want to compare it as a number. That might be another issue.

So there are a couple of issues going on.

Maybe you can create a dummy survey in English with only the questions relevant for this problem, so we can actually understand what you are trying to do? I find it very hard to understand your survey.

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.

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose