autocomplete search feature layer - aggregate records

337
2
Jump to solution
05-30-2023 04:22 PM
AllisonWebb
New Contributor II

I'm new to Survey123, but cannot find an answer to this problem.  I've created an autocomplete search for records within a feature layer.  The drop down is showing multiple records not aggregated by value.

There are several records with "CEC" as the region.  My list is duplicating the "CEC" for each record.  I would like the list to be aggregated for selection. 

AllisonWebb_0-1685488056501.png

 

0 Kudos
1 Solution

Accepted Solutions
Nicole_Ueberschär
Esri Regular Contributor

Use &returnDistinctValues=true with your search query like

search("area?url=https://xxx/FeatureServer/1&returnDistinctValues=true",'matches', '', '', 'region', ${region})

View solution in original post

0 Kudos
2 Replies
Nicole_Ueberschär
Esri Regular Contributor

Use &returnDistinctValues=true with your search query like

search("area?url=https://xxx/FeatureServer/1&returnDistinctValues=true",'matches', '', '', 'region', ${region})

0 Kudos
AllisonWebb
New Contributor II

That worked!  Thank you!

0 Kudos