How do you preset answer choices for a variable number of choices | XM Community
Skip to main content
Solved

How do you preset answer choices for a variable number of choices

  • September 24, 2018
  • 2 replies
  • 20 views

Hello All, I have an array that I have stored in embedded data that will be between 1-5 units in length depending on some information from the user. I want to set those as units as choices in a later question but I won't know exactly how many choices I need so am not sure how to populate the answer choices. When I write them in assuming there will be 5, I end up with blank choices, and when I try and just call the entire array, it calls them all in the same choice string separated by a colon, but not as separate choices. Thoughts on how to approach this? Thank you!

Best answer by TomG

You have to have the maximum number of answer choices, then hide the ones you don't need either by display logic or JavaScript.

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • September 24, 2018
You have to have the maximum number of answer choices, then hide the ones you don't need either by display logic or JavaScript.

  • Author
  • September 24, 2018
@TomG Thank you!