Arcade expression with conditional pop-up for image

12-17-2021 10:22 AM
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
MVP Esteemed Contributor

It is possible, and has been asked a few different ways on here in the past. Here's one:

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