Is it possible to randomly display only one of the selected choices from a multiple | XM Community
Skip to main content
Solved

Is it possible to randomly display only one of the selected choices from a multiple

  • May 30, 2019
  • 2 replies
  • 25 views

I have a multiple answer column of a list of items and I'd like to randomly display one of selected items in a descriptive text box. Is it possible to randomly display only one of the multiple answers that were selected in the multiple column list?

Best answer by Anonymous

Hello @dkid , You can carry forward the selected choices to a question and using advanced randomization check "display only 1" from all choices. Hide this new question using JS and do auto advance on that page - Paste the below code in the new question js OnReady jQuery("#"+this.questionId).hide(); jQuery("#NextButton").click();

2 replies

  • Answer
  • May 30, 2019
Hello @dkid , You can carry forward the selected choices to a question and using advanced randomization check "display only 1" from all choices. Hide this new question using JS and do auto advance on that page - Paste the below code in the new question js OnReady jQuery("#"+this.questionId).hide(); jQuery("#NextButton").click();

  • Author
  • May 30, 2019
Hi @Shashi, Thanks so much this worked! Thank you for your help!