Welcome to the LimeSurvey Community Forum

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

1 out of 3 groups randomly, this part of survey are shown "question by question"

  • LisaTW
  • LisaTW's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #216273 by LisaTW
Hi there,
I'm trying to design a survey consisting of two parts. Part1 is about general questions, and I'd like all questions in part1 are shown in one page. Part2 is about choice experiment, participant will see 1 block out of 3 randomly, each block consists of 3 questions, how can I let one question is shown per page?
I have tried "group by group" or "question by question", this button is for the whole survey.
I also tried put all nine questions (in three blocks ) into 9 groups, 1-3 groups have the same Relevance equation: strpos(random,"01")>0, 4-6 groups have the same Relevance equation: strpos(random,"02")>0, 7-9 groups have the same Relevance equation: strpos(random,"03")>0, participant will see 1 out of 3 randomly, but the order of these three questions seen by participant will change.
I'm using  Version 3.25.21 .
What should I do? Looking for your help!

Lisa


Part of the message is hidden for the guests. Please log in or register to see it.

 
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago - 4 years 1 month ago #216277 by Joffm
Hi, Lisa,

Your javascript to get the "random number" is possible, but here not the best solution. I did not look at it to see if there was a mistake.
Sufficient (and the usual approach for this): question of type "equation" with  {if(is_empty(random),rand(1,3),random)}

All you need is this random number from 1-3 then your three groups get the relevance equations "Is the random number equal 1, then show Group 1, is it equal 2 then show group 2, ...
And to show the questions on one page, split the groups into three, each with one question.
Block 1A: random==1
Block 1B: random==1
Block 1C: random==1
Block 2A: random==2
...
Block 3C: random==3

4. Your blocks do not get a randomization group name.
Always remember: If you want to display randomly ONE option out of many you use a random number.
If you want to display ALL questions/groups, but in random order, you use the randomizationgroup name.

But you may do that. If you want to display the questions of each block in random order, well, all questions of Block1X get "RG1", all of Block2X "RG"",...

By the way: Why can't I have a balcony AND a garden?

Here the survey corrected.
 

File Attachment:

File Name: limesurvey... (1).lss
File Size:145 KB


Joffm

Having said all this:
I checked your survey, which works fine (with the different way to define and use the random number).
The only missing thing is the splitting of each block into three.

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 1 month ago by Joffm.
The topic has been locked.
  • LisaTW
  • LisaTW's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #216280 by LisaTW
Hi Joffm,
Thank you for your quick reply and kind help.
This is a sample survey, I tried to use the way of your attached file, it says "There are expressions with syntax errors in this question." please see the attached picture and file.
Could you please help me check what I have done wrong?

Lisa


Part of the message is hidden for the guests. Please log in or register to see it.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 1 month ago #216281 by Joffm
This is not surprising, if you remove the question "random".
This was the structure in the survey I sent.
 

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • LisaTW
  • LisaTW's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 1 month ago #216305 by LisaTW
Hi Joffm,
Thank you for your kindly help!

Lisa
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose