Select to view content in your preferred language

Set select_one field default if a single record returned from a map service query

502
3
02-07-2022 06:18 AM
JohnGrogan1
New Contributor III

I am using a search function in the appearance column for a select_one field to query a map service and return features where the geopoint value falls "within" the feature geometry.

If the query returns only one value I would like this to be set as the default value for the select_one field, so the user doesn't need to select it from the drop-down, or alternatively for the query result to be pushed to a text field.

0 Kudos
3 Replies
BrettStokes
Esri Contributor

Hi @JohnGrogan1 ,

I have a pretty 'hacky' workaround to make something similar work, but it relies on the fact that there will always be only one query result (in my case I'm returning a point in polygon and there are no overlaps in the polygons). Let me know if you think this would be useful to you and I can message you directly with the details of the workaround.

Regards,

Brett

0 Kudos
DaveFullerton
Occasional Contributor III

I would be interest in this as well, @BrettStokes , if you don't mind.

0 Kudos
JohnGrogan1
New Contributor III

Thanks Brett.  I'd be interested to see the solution.  

0 Kudos