Welcome to the LimeSurvey Community Forum

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

Randomized display of question groups

  • rockyist
  • rockyist's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 months 3 weeks ago - 7 months 3 weeks ago #250219 by rockyist
Randomized display of question groups was created by rockyist
Your LimeSurvey version: Version 5.6.14+230403
Own server or LimeSurvey hosting:
Survey theme/template: Fruity Theme

Hello all,

I'm trying to display different question groups randomly in my survey. But it doesn't work as what I want. I have two random questions which generate random numbers. 
  • random1 (1 for Choice1.1, 2 for Choice1.2 and 3 for Choice1.3)
    • Groups of Choice 1.1, 1.2 and 1.3 are all put in the randomization group C1.
  • random2 (1 for Choice2.1, 2 for Choice2.2 and 3 for Choice2.3)
    • Groups of Choice 2.1, 2.2 and 2.3 are all put in the randomization group C2.
Does anybody have idea how can I work it out? Thanks in advance.

 

File Attachment:

File Name: limesurvey...6948.lss
File Size:56 KB
Last edit: 7 months 3 weeks ago by rockyist.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 3 weeks ago #250220 by Joffm
Replied by Joffm on topic Randomized display of question groups
Hi, 
why didn't you answer the questions at the beginning about your used version, etc.?

Well, there are so many errors.

1. What die you really want to do?
Do you want to show all three groups 1.1, 1.2, 1.3, but in random order?
The you use the randomization group name.

Or do you want to show only one of them, selected randomly?
Then you have to use the random number.

You did both. So I assume you want to show only one group.
In this case the randomization grioup name is useless.

Furthermore you set the "relevance equation" of each second and third question to "0", meaning "not displayed".
Result: Only if the random number is equal 1, this first question is displayed, else nothing at all.

So, please explain your goal better.

Joffm
 

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

Please Log in to join the conversation.

  • rockyist
  • rockyist's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 months 3 weeks ago #250225 by rockyist
Replied by rockyist on topic Randomized display of question groups
Hello Joffm,

I want to show random one of the first three groups (1.1, 1.2, 1.3) and the other random one out of groups 2.1, 2.2, 2.3. 

Best, 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 3 weeks ago #250231 by Joffm
Replied by Joffm on topic Randomized display of question groups
Well,
use the random number(s).
Remove everything else.

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

Please Log in to join the conversation.

  • rockyist
  • rockyist's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 months 3 weeks ago #250232 by rockyist
Replied by rockyist on topic Randomized display of question groups
Hi Joffm, 

I removed everything and kept the random number in the group relevance. But it still doesn't work as I want. Could you please have a look at my survey setting?

File Attachment:

File Name: limesurvey...9481.lss
File Size:55 KB


Best, 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 3 weeks ago #250234 by Joffm
Replied by Joffm on topic Randomized display of question groups
I do not know how many times this is explained here.
If you only use "rand(x,y)" the random number changes with each click.
This is the same behaviour as in Excel

Therefore we use this construcht

{if(is_empty(random2),rand(1,3),random2)}
Only if the randoim number is empty, it will be generated, otherwise it stays as it is.

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

Please Log in to join the conversation.

  • rockyist
  • rockyist's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
7 months 3 weeks ago #250237 by rockyist
Replied by rockyist on topic Randomized display of question groups
Thank you Joffm for your patience, it works.

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose