Select to view content in your preferred language

Retrieve number of choices in choice list

01-14-2022 06:42 AM
New Contributor III


I wonder if anybody would know a way of retrieving the number of choices in a choice list. It displays at the bottom of the choice list, but I want to be able to use this value elsewhere in the form.


The choice list is populated via a spatial search appearance in the select_one question.

I basically want to retrieve the number of features within the area defined by the geoshape question and thought  'Search' appearance would provide an easier option than using JS!

Many thanks for your help.


0 Kudos
1 Reply
by Anonymous User
Not applicable

Hi @CherylWheeler11,

The number displayed at the bottom of the dropdown is not available to use elsewhere in the form, it is not a value that can be queried via a calculation.

The best way to do this would be via a JS function, query the same layer/table you are using for your spatial query.



0 Kudos