How to detect the selection of an item in a list?

538
4
Jump to solution
11-02-2022 08:57 AM
vocono1953
New Contributor II

Is it possible to detect in real-time when a list item is selected, so the relevant list is displayed.

HTS CROPPED.png

 

 

 

 

Thank you for any help you may give.

0 Kudos
1 Solution

Accepted Solutions
ClayDonaldsonSWCA
Occasional Contributor II

the selected() formula can be used in the relevant column to accomplish this.

Formulas—ArcGIS Survey123 | Documentation

Function Description Example

selected(question, value)

Checks whether answer is selected. Used for select_one and select_multiple questions.

selected(${question_one}, 'a')

View solution in original post

4 Replies
ClayDonaldsonSWCA
Occasional Contributor II

the selected() formula can be used in the relevant column to accomplish this.

Formulas—ArcGIS Survey123 | Documentation

Function Description Example

selected(question, value)

Checks whether answer is selected. Used for select_one and select_multiple questions.

selected(${question_one}, 'a')

JoseBarrios1
Occasional Contributor III

if the question is for a select multiples, you can use the selected function in combination : selected(${SelectTask}, 'Plant') or selected(${SelectTask}, 'Prune'). You can also use the regex()  regex(${SelectTask}, 'Prune') more info here: https://doc.arcgis.com/en/survey123/desktop/create-surveys/xlsformformulas.htm#ESRI_SECTION2_BED1A39...

 

JB

vocono1953
New Contributor II

Thanks to both of you. It turned out that the enumeration value for "Plant" was needed to make this work.

So, it turned that ${list_task}=9 worked.

Thanks again.

0 Kudos
JoseBarrios1
Occasional Contributor III

Glad it works...FYI. if the question is passing "9" as value that will be the value  for the record capture on the survey table. If you want the actual "Task" type to be capture, you have to change the name or  for the list or use another field to capture the label using calculate field.   jr:choice-name(${fieldname}, '${fieldname}')

JB

0 Kudos