Xander Bakker
I would like to create a popup that shows field names in the attribute table if the field value for the feature equals 1.
Specifically, my Bus Stops table has a field for each bus route (A, B, C, D, etc. 22 in all) if the stop is served by a route, the field value is 1, if not, the field value is 0. I want the popup to show only the routes that serve the selected stop. I know I need to iterate the route fields (but not all fields in the table) to evaluate whether the route field value is 1, and then add those field names (the route name) to a list and then return the list. I could do this in Python, but I am not as familiar with Arcade. I tried checking some of the other posts on lists https://community.esri.com/people/mmckeanesriaustralia-com-au-esridist/blog/2019/10/07/creating-aggregated-lists-from-overlapping-point-and-polygon-features-a-brief-guide-to-creating-lists-in-arcade but I couldn't glean what I needed since my Arcade is very basic. Thanks!