Multiple-choice question - labels of selected questions to note

10-26-2021 07:06 AM
Esri Regular Contributor


I would like to ask you for help. I have a image-map multiple choice question (the car from Survey123 samples) and I would like to push the labels of selected features to note or other text segment.

The default solution <b>Vybrané položky:</b> ${damage}, adding selected features to notes, separated by column but not the labels of the features, but it´s name, which are not "pretty to display".




Then I tried a function 

jr:choice-name(selected-at(${damage}, 0), '${damage}')

in calculation, which returns labels as needed but just for first selected feature. Also, I don´t know how to set correctly the index - hasn´t found it in doc - maybe this is the showstopper there.



I will be happy for any tips.

Thank you,


2 Replies
MVP Frequent Contributor

When I has this I just wrote them all out.  If it is blank then no biggie.

So if you have 10 choices

jr:choice-name(selected-at(${damage}, 0), '${damage}') + jr:choice-name(selected-at(${damage}, 1), '${damage}') .... jr:choice-name(selected-at(${damage}, 10), '${damage}')

Hope that is what you meant

Esri Regular Contributor

Hi @DougBrowning

technically yes, that´s exactly what I meant. Thank you so much for this workaround.

In case I don´t know how many outputs will be, some for dynamic solution in Survey (dynamic index count)) would be great.

Anyway it working for me, thank you.