Auto-select a random option for all respondent | XM Community
Skip to main content

hi Community,
Is there any way we can chieve following things?
lets say we have 4 kinds of Ad, named as Ad 1, Ad 2, Ad3, Ad4.
When a respondent come in the survey, the survey will randomly select an option in a hidden question. something like below screenshot.
Screenshot 2023-02-09 210801.png
But I also would like to make this thing more average, say if we have 100 respondents, then each Ad will be allocated automatically to 25 respondents (a little +- doesnt matter, but dont be too much).

Can we done that with or without JS?
Thanks in advance

WeishiCheung You can accomplish this using Advanced Randomization.


Advanced Randomization using Random Subset and Evenly Present gets you most of the way there but you still need a bit of JS to select a choice (see https://gist.github.com/marketinview/8310ba82acde38be62f007095bbe0278).
Another way to do it would be to use a survey flow randomizer and set an embedded data field to identify the selected ad.


Leave a Reply