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 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!