Group Logic allows you to randomize questions or sets of questions within a survey. Most commonly used for monadic or sequential monadic survey design, but can also be used to simply randomize a few questions. This article will cover simple to complex uses cases for [group] logic.
If you want to randomize the order that respondents see a few certain questions, the logic syntax will look like this:
[group Q1 and Q2 and Q3]
When respondents get to the first question in your group logic statement, they will see those three questions in a random order. Once they complete all three questions, they will be sent to the next available question in your survey (depending on any other logic you have applied). Randomization is generated individually for each respondent.
If you want to randomize the order that respondents see sets of questions (also called “nodes”), the logic syntax should look like this:
[group Q1-3 and Q4-6 and Q7-9]
Questions that make up the set (Q1, Q2, Q3) will be shown in order but respondents will see the sets of questions starting with Q1, Q4, or Q7 in a random order. Once respondents complete all the questions they will automatically be sent to the next relevant question in the survey.
Note: make sure your question numbers don’t overlap between sets or the logic will not work.
If respondents should only see some, but not all, of the questions or sets of questions, you can add a max qualifier.
[group Q1 and Q2 and Q3 max 1]
In the above example, respondents will randomly see only one question (Q1, Q2, or Q3).
[group Q1-3 and Q4-6 and Q7-9 max 2]
In the above example, respondents will randomly see a max of two of the groups (Q1-3, Q4-6, or Q7-9).
If respondents should see all questions the max qualifier is not needed.