AnsweredAssumed Answered

Custom pop-up (if/else statement) based on attribute values, ArcGIS Online

Question asked by Nataliya.Lys on Sep 9, 2015
Latest reply on Sep 25, 2015 by Nataliya.Lys

In the ArcGIS online map I would like to customize the pop-ups to show only specific data from the attributes.  The map I am working on shows parks, and in the pop up window i would like to list available amenities in each park. The problem is that in the attribute table each amenity correspond to the specific field, and the values are Yes/No for the amenities (image from attribute included below).

 

I know what I am trying to do, but I don't know how to accomplish it:

Basically I would like to write the HTML 'if/else' statement in the pop-up, do the following:

 

example:

 

if 'Camping Available' = Yes

  return 'Camping'

else

return (nothing)

 

I would have to do it for each field.

 

I don't know if anyone has done it with the pop-ups in ArcGIS online, but I would appreciated any suggestions.

 

Here is the link to my map: http://omaha.maps.arcgis.com/home/webmap/viewer.html?webmap=a72a92754ef4400e8a79116d68ccb93d

 

Thank you,

Outcomes