How do you preset answer choices for a variable number of choices | XM Community
Solved

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

  • 24 September 2018
  • 2 replies
  • 6 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!
icon

Best answer by TomG 24 September 2018, 16:32

View original

2 replies

Userlevel 7
Badge +27
You have to have the maximum number of answer choices, then hide the ones you don't need either by display logic or JavaScript.
@TomG Thank you!

Leave a Reply