Hi. My webmap displays an image in the popup, with the source attribute dynamically created like this:
Works fine, but there are some features that lack an image in that folder. In that case, I'd like to automatically display an alternate image. Like a placeholder that shows something like 'comming soon' or 'no image found'.
Note that there is no field in the layer that indicates existence of the image in that folder, so I can't use arcade to check a field and specify a different url dynamically.
html img tag does have an onerror attribute, but it appears it's not supported in popup elements.
My other thought is to try ussing css to stack two imges one on top of the other, with the alternate image being below the other image so that if that top image does not exist, the bottom one would be visible. Not not sure how to accomplish this with inline css.
Any ideas?
Thanks.