Query widget - add image to results

479
2
Jump to solution
01-27-2020 10:06 AM
ChantellKrider1
New Contributor II

I’d like to display an image in the Query Widget results window (pictured attached.

I can get the image to display in the pop up in the web map, but for some reason it won’t display in widget.

Here’s my Arcade for the image:

/*Up Legend – Regular Block Group*/

Iif($feature["UP_Eligibl"]=="Eligible", "https://rco.wa.gov/wp-content/uploads/2020/01/MatchMapUnderservedLegend.png","")

0 Kudos
1 Solution

Accepted Solutions
BenTurrell
Occasional Contributor III

Hey Chantell,

How are you trying to add the image? If you use the expression you have written in the html source part of the pop up contents then that should work.

You would have something like this in your html source:

<img src="{expression/expr0}">

Thanks,

Ben


If this answer has helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.

View solution in original post

2 Replies
BenTurrell
Occasional Contributor III

Hey Chantell,

How are you trying to add the image? If you use the expression you have written in the html source part of the pop up contents then that should work.

You would have something like this in your html source:

<img src="{expression/expr0}">

Thanks,

Ben


If this answer has helpful please mark it as helpful. If this answer solved your question please mark it as the answer to help others who have the same question.

ChantellKrider1
New Contributor II

Yep. That was it! Thank you!! 

0 Kudos