Use choice filter with seach(‘<unique_name>?url=<Layer REST URL>’) in the appearance column

131
2
2 weeks ago
dwold
by
Occasional Contributor II

I am pulling in responses from one survey and would like users to select one of those responses while also populating another question (to be read only) from the first selection. In my scenario, the Objective is a repeat. The GlobalID of the event name and ParentGlobalID of objectives are the same. I am trying to do this in the choice_filter column. My issue is when using the select in choice_filter column, the 2nd question disappears.

Form with no relevant function:

dwold_0-1714749087673.png

Form with choice_filter function (objectives are removed). I am trying to display only the associated objectives once an event is selected:

dwold_1-1714749695035.png

Survey Form:

dwold_2-1714749809880.png

dwold_3-1714749844333.png

Choices table:

dwold_4-1714749969687.png

 

This is what I am trying to accomplish:

dwold_5-1714750217945.png

 

 

 

 

 

0 Kudos
2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @dwold

With the search() appearance you don't need the choice_filter column. You'll need the event names as a field in your objectives layer then user the search parameters to filter the choices based on the objective. 

Your syntax would look something like search('objectives?url=...featureServer/1', 'matches', 'event_name', ${aar_admin_event})

See the search() documentation for more information on the different parameters for the search() appearance. 

 

Thank you,
Zach
0 Kudos
dwold
by
Occasional Contributor II

@ZacharySutherby thanks for the tip! I created the event name field in my objective repeat and it displays it in the form but when I hit submit that field is empty.

Xls Form:

dwold_3-1715012126997.png

Online form:

dwold_0-1715012026326.png

Objectives table:

dwold_1-1715012048850.png

Any idea why that is happening?

0 Kudos