AnsweredAssumed Answered

Pop-up Arcade Expression- Show List of Field Names if field Value matches expression

Question asked by dalmond on Jan 17, 2020
Latest reply on Jan 21, 2020 by xander_bakker

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

 

 

Outcomes