Select to view content in your preferred language

Retrieve number of choices in choice list

261
1
01-14-2022 06:42 AM
CherylWheeler11
New Contributor III

Hi,

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.

CherylWheeler11_0-1642171201883.png

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.

Cheryl

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.

Regards,

Phil.

0 Kudos