Hide an answer in a repeat question based on previous answer

647
3
12-17-2020 09:24 AM
LeonardBarnhill
Occasional Contributor

Survey123 Connect version 3.12.183 - I have a form with multiple repeat sections.  I would like to hide the previously selected choice from the select_multiple list.  For example:

Select Pipe Inspected

Pipe 1

Pipe 2

Pipe 3

On next run of repeat section, I would like the option used in the first repeat to be hidden from the user.  In this example, the used selected Pipe 1 in the previous repeat:

Select Pipe Inspected:

Pipe 2

Pipe 3

How could that be accomplished?

0 Kudos
3 Replies
LeonardBarnhill
Occasional Contributor

Thanks for responding to this question Doug but none of the proposed solutions has worked for me.  The challenge is that each pipe number selection is in a subsequent repeat so referring the choice filter to "state=${state_1}" does no good in repeats since the question does not appear to look at what was selected in previous repeats.  Other suggestions?

0 Kudos
DougBrowning2
Occasional Contributor III

It sounded like these were 2 questions not 3 repeats.  Check out this post then  https://community.esri.com/t5/arcgis-survey123-questions/restricting-duplicates-for-a-field-during-r...

also here

https://community.esri.com/t5/arcgis-survey123-questions/populate-values-in-select-multiple-from-pre... 

There is a way to do it by building a string with join then checking to see if it is listed already.  The other uses javascript.  I cant use javascript since I go across AGOL orgs.

Hope that helps.

0 Kudos