Return label answer from select_mult as a note in Repeat Group

85
2
Jump to solution
06-30-2022 10:17 AM
LouryMello
New Contributor

Hello, 

I did a survey form with a Repeat Group relevant from select_mult question. The number of repeats depends how many options are selected. And I wish show a selected answer as a note on the begining of repeat. When I tried it with selected-at(${cultivo_mult}, position(..)-1), it bring me out the name of choice and I want to show the name of the label. 

After, I tried  jr:choice-name(${cultivo_mult}, '${cultivo_mult}') but when I selected more than one option and change to next repeat the name of the note dind't change as a error. 

I am not sure if a explain nice. 

I am leaving the .xslx

0 Kudos
2 Solutions

Accepted Solutions
DougBrowning
MVP Notable Contributor

Did you try this? You have the correct 2 parts you just need to combine them.

 jr:choice-name(selected-at(${cultivo_mult}, position(..)-1), '${cultivo_mult}') 

It shows an example that is close in the help here  https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm

Hope that helps

View solution in original post

lourymello1
New Contributor II

Thank you, Doug!! 

 

That works!!

🙂

View solution in original post

2 Replies
DougBrowning
MVP Notable Contributor

Did you try this? You have the correct 2 parts you just need to combine them.

 jr:choice-name(selected-at(${cultivo_mult}, position(..)-1), '${cultivo_mult}') 

It shows an example that is close in the help here  https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm

Hope that helps

lourymello1
New Contributor II

Thank you, Doug!! 

 

That works!!

🙂