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

Auto-select a random option for all respondent

  • February 9, 2023
  • 2 replies
  • 75 views

Forum|alt.badge.img+1

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

2 replies

jmborzick
QPN Level 5 ●●●●●
Forum|alt.badge.img+41
  • QPN Level 5 ●●●●●
  • 261 replies
  • February 9, 2023

WeishiCheung You can accomplish this using Advanced Randomization.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • February 9, 2023

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.