Multiple-choice question - labels of selected questions to note

155
2
10-26-2021 07:06 AM
VHolubec
Esri Regular Contributor

Hello,

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".

 

VHolubec_0-1635257014823.png

 

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.

VHolubec_1-1635257087450.png

 

I will be happy for any tips.

Thank you,

Vladimir

2 Replies
DougBrowning
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

VHolubec
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.

Vladimir