|
Setup script to randomize all questions
The Script for Randomization is as below:
#set($ary = ["Q3", "Q4", "Q5", "Q6","Q7","Q8"])
#set($ary = $survey.randomizeList($ary))
#foreach( $val in $ary)
$survey.branchTo("$val")
#end
In the above script in the first statement questions Q3, Q4, Q5, Q6, Q7 and Q8 are added to a list and randomized in the second statement. Once randomized the survey branches to each question randomly.
Steps for setting this up:
Setup Randomization to randomly select 3 questions from a pool of 6 questions (N out of M)
The Script is as below:
#set($ary = ["Q3", "Q4", "Q5", "Q6","Q7","Q8"])
#set($ary = $survey.randomizeList($ary, 3))
#foreach( $val in $ary)
$survey.branchTo("$val")
#end
In the above script questions Q3, Q4, Q5, Q6, Q7 and Q8 are added to a list and randomized. After randomization only 3 questions are returned to the list randomly and subsequently the survey branches to only those 3 questions.
Steps for setting this up:
You can use the same logic for Randomizing entire Blocks of Questions. To do so add only the first question in each block for Randomization and branch the last question of each block to the common block termination question. |
This feature/tool [Custom Scripting - Randomization] is not available as part of any of our standard self-service licenses. It is part of our Enterprise Service License. Please contact your Account Manager for pricing and options for purchasing the Enterprise Service License.
Please Visit Survey Analytics to learn more about Enterprise Solutions