Arcade expression with conditional pop-up for image

480
1
12-17-2021 10:22 AM
fkhan242
New Contributor III

Trying to create a pop-up where an image will display based off an attribute value (Yes/No). 

If 'yes', display image. If 'no', do not display image.

Is this possible as an Arcade expression?  Would appreciate some guidance/direction on the scripting approach.

Tags (3)
0 Kudos
1 Reply
jcarlson
MVP Esteemed Contributor

It is possible, and has been asked a few different ways on here in the past. Here's one: https://community.esri.com/t5/arcgis-online-questions/conditional-field-display-in-pop-ups/m-p/10463...

Essentially, your popup will include an HTML style tag with "display:{your-expression}" in it, and "your-expression" will evaluate to either none or inline.

- Josh Carlson
Kendall County GIS