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?
I suppose you could do a query on a HFS in the function?
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}'), ...)
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.