Select to view content in your preferred language

Count choice list generated by the search Appearance.

910
2
10-22-2024 12:44 AM
Giota_Zach
Emerging Contributor

Hi,

I would like to have a note field that counts all the available choices from a search appearance layer based on a geoshape drawing.

What I need is essentially the opposite of the count-selected() function. I could use it if all options were selected by default, but the list I'm working with contains at least 100 choices, so selecting them all isn't practical with what I found.

Any advice on how to achieve this?

Thanks!

0 Kudos
2 Replies
ChristopherCounsell
MVP Regular Contributor

This came up on a recent post and I believe the count of available choices is not possible at this time.

You can run a separate query using pulldata against the layer, in addition to the search for the choice list.

https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-pulldata-quot-laye...

However I'm not sure if it supports polygon queries and might not process the results the way you want, so I think you'll need to resort to JavaScript where this is more than likely to be possible.

https://doc.arcgis.com/en/survey123/desktop/create-surveys/pulldatajavascript.htm#ESRI_SECTION1_2A1B...

Just note the limitations of using JavaScript.

0 Kudos
Giota_Zach
Emerging Contributor

Thank you very much for the prompt reply. I'll try to check the JavaScript.

0 Kudos