I'm trying to create a survey where the users select different choices from an image map and I use the selections as a filter in the choice filter column. The image map is a select multiple question so I know I have to use selected() in the choice filter. During my testing, I noticed that when I select the first choice the filter works properly, but any other choice doesn't display until I unselect an additional choice. I'm not sure if this is a bug or if this functionality works with an image map. I've attached my form from the image map sample.
I created an ESRI Support case and they determined that my issue is a bug. Below is the bug number.BUG-000173408: Choice filters based on responses from a select-multiple question with an image-map appearance do not work as expected in the ArcGIS Survey123 Field App
Any chance you can include the image map as well so I can test this locally?
Thanks for the response. I've attached the SVG that's being used.
Unfortunately, choice_filter limitation for image-map questions. Seems like an odd limitation given that an image-map is just a different way to display select_one/multiple.
That said, there is a (silly) workaround. Just add a hidden select_multiple (a regular one) and in the calculate column, reference the image-map question. Then, you can make your choice_filter point to that new question. Problem solved. Here is an example:
As for this part not working:
That is just a limitation of select_multiple. The workaround is to add every option to its own calculate. Then concate them all together. Then finally trim the trailing ", ". I actually just did that today. Here is an example:
Thanks for the reply and finding a potential workaround. However, the workaround isn't working for me. I've copied what you've done in the screenshots, but I'm still getting the same behavior as before. I'm using Survey123 Connect version 3.21.62 so could it possibly be a version issue?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.