Welcome to the LimeSurvey Community Forum

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

Random selection of 3 questions out of 15

More
7 years 6 months ago #142784 by jelo
Good idea.

Since "one question per page" was described as an "additional" requirement I have to point out that one requirement is no longer fulfilled with Tony's workaround: "Ensure questions will be asked in a random order". The order won't change.

Progress-bar should be corrected manually. Hopefully the progress bar routine will change behavior one day in the future. Counting groups is often misleading.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #142800 by tpartner
Replied by tpartner on topic Random selection of 3 questions out of 15

"Ensure questions will be asked in a random order". The order won't change.

Did you try my sample survey? The group order is randomized so, effectively, the question order is randomized.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
7 years 6 months ago - 7 years 6 months ago #142803 by jelo
I tried is a few times. Perhaps I didn't tried it often enough? Or I looked at the wrong indication number? Numbers were always rising.
Or there is a bug in demo.limesurvey.org.

I see that you used a randomizationgroup "randGroups1". So it should randomize the order of the groups as well.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Last edit: 7 years 6 months ago by jelo.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #142805 by tpartner
Replied by tpartner on topic Random selection of 3 questions out of 15
It is randomized for me in both 2.06 and 2.53.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
7 years 6 months ago #142806 by jelo
Well, than I was not carefully enough while testing. Sorry.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
More
7 years 6 months ago #143120 by dieterdubinsky
Replied by dieterdubinsky on topic Random selection of 3 questions out of 15

tpartner wrote: It looks like the relevanceStatus is only generated after page load so my solution would be as follows...

1) Run the survey in group-by-group mode

2) Place each question in a separate group

3) In each group, precede the visible question with a hidden equation question (equation1, equation2...) containing something like this (varies by group):

Code:
{sum(Q2.relevanceStatus, Q3.relevanceStatus, Q4.relevanceStatus, Q5.relevanceStatus)}

4) Place relevance on the visible questions, referencing their corresponding equation questions something like this:
Code:
equation1 LT 3


Sample survey attached:

File Attachment:

File Name: limesurvey...5272.lss
File Size:19 KB


Thank you very much! This is exactly what I did and it worked out. Sorry for not replying to you earlier :-).
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose