Choice Filter with Regex

220
3
11-21-2018 04:57 PM
SimonWatz
New Contributor II

Is it possible to use a choice filter with a regular expression. Ideally storing multiple options in the choice filter column in the choices worksheet like below:survey worksheet

survey worksheet

choices worksheet

choices worksheet

Tags (2)
3 Replies
Chris_Counsell
Esri Contributor

James Tedrick‌ is there any support for using choice filters this way? Where a choice can filter into several options in a list.

I found that adding the items several times (one for each choice filter) worked but wasn't sure if it's a good idea. The only side effect I could see was that the field didn't have domains a usual other select_one question would. 

This approach is also a bit clunky for longer lists.

Esri Australia | please don't forget the kudos ☺
Reply
0 Kudos
SimonWatz
New Contributor II

Or could I use a Contains() in the choice filter?

Reply
0 Kudos
Chris_Counsell
Esri Contributor

Simon Watz‌ this has been previously discussed here:

https://community.esri.com/thread/221635-is-there-a-way-to-create-cascading-selects-without-writing-... 

The Survey123 team indicated that expression support is limited, but also posted an example using multiple columns as choice filters.

The original poster also provided their workaround solution.

Esri Australia | please don't forget the kudos ☺
Reply
0 Kudos