How do you preset answer choices for a variable number of choices | XM Community
Skip to main content
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!
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