I am trying to grab multiselect question result and create a list as they are populated. Anyone have a script that can do this? I have one that crabs the names and creates a list but not the label. How do you grab the label of a multiselect with JS?
Hello @TL2,
You would need to use the jr:choice-name function to return the labels for the selected responses and pass that into your JS function.
For example, concat(jr:choice-name(selected-at(${select_multiple}, 0), '${select_multiple}'), ',', jr:choice-name(selected-at(${select_multiple}, 1), '${select_multiple}'), ',', jr:choice-name(selected-at(${select_multiple}, 2), '${select_multiple}'), ...)
I suppose you could do a query on a HFS in the function?