Limesurvey: Randomly show x out of y question groups
This is a step-by-step manual to configure a Limesurvey poll to show X questions from a (random) selection of Y question groups.
The proof of concept can be accessed here: https://survey.toolsforresearch.com/index.php/345678. The compliation was borrowed from Tony Partner:
https://www.limesurvey.org/forum/can-i-do-this-with-limesurvey/107889-randomly-select-question-groups#145950
The full manual can be found here: https://toolsforresearch.com/limesurvey-randomly-show-x-out-of-y-question-groups and an excerpt of it is copied below.
1) The slider to choose the number of groups (variable x)
Create a ‘Multiple numerical input’ question with Qcode ‘gcount’. The maximum should match the number of random groups within randomization group (‘y’).
Add a subquestion ‘1’. The variable ‘x’ will be stored in ‘gcount_1’.
2) Random groups
Create the random groups: ‘randGroups1’ in randomization group.
3) Equation in each random group
Every random group should start with a hidden question of the equation type.
The value of the equation is the sum of the RelevanceStatuses for all the other groups in the same Randomization group.
4) Questions within a random question group
The trick is that every (visible) question within each random group must have a relevance equation that checks if the equation of the current random group is less than gcount_1 (the ‘x’ variable). The relevance equation is entered in the general options of each question.