Hello all,
I'm trying to display multiple images in the dashboard list to correlate with a field in the layer. For example, I have a field ' Threat', this will have three different options for the end users to select 'Low, 'Medium' and 'High'. I have a custom field using arcade expression to then get the correct image:
if ($feature.threat == 'Low') {
return 'IMAGE URL'
}
else if ($feature.threat == 'Medium') {
return 'IMAGE URL'
}
else if ($feature.threat == 'High') {
return 'IMAGE URL'
}
I've then tried to use the custom field in Dashboard list using both of the below HTML image tags:
<p>Test 1</p>
<p><img src="{expression/expr0}" /></p>
<p>Test 2</p>
<p><img alt="" src="{expression/expr0}" /></p>
The above gets me the below output. If I use the actual image URL it works, but this doesn't work overall due to the different features having different values.

Any help with this would be really appreciate 🙂