Welcome to the LimeSurvey Community Forum

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

integrate and sequence

  • benshuo
  • benshuo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 4 months ago #208332 by benshuo
integrate and sequence was created by benshuo
Dear all,
you can see the attached screenshot. when users finish part 2, they should be automatically allocated to two groups. group one is part 3 and 4; another one is part 5 and 6. How can I achieve that function?
1. combine part 3 and 4 together, the same for part 5 and 6. Because I set a timer in part 3 and part 6, so I can't put 3 and 6 into 4 and 5.
2. let the system automatically allocates users to different groups?


Thanks

Kind regards,
Wang Benshuo
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 4 months ago #208336 by Joffm
Replied by Joffm on topic integrate and sequence
Hi,
the usual thing is to create a random number between 1 and 2.
Create a question of type equation (you may call it "randnum")
Enter this equation:
{if(is_empty(randnum),rand(1,2),randnum)}

Now you get two values of "randnum": 1 or 2.

And your groups you display by entering the respective relevance equation into the group:
randnum==1 for group 3 and 4
randnum==2 for group 5 and 6

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose