Hi,
I'm trying to a simple expression in Arcade to populate the image portion of a popup. I have two fields in my data containing the google drive location of the image and its thumbnail. I use the following to test if an image exists for record:
return IIF(isEmpty($feature.Picture), "", $feature.Picture)
and the popup is configure as follows:
This works as expected when there is no image available.
However when there is an image the following happens:
When I checked the response it turns out Arcade is trashing the URL from the field. So instead of sending
https://drive.google.com/foo/b.ar/uc?export=view&id=1qLYMclQ5nDGYaM895ziF-5EzD4Am385-
The following is sent:
https://drive.google.com/foo/b.ar/uc?export=view&id=1qLYMclQ5nDGYaM895ziF-5EzD4Am385-
Notice how & got changed to &. This ends up causing the GET request for the image to fail/
Accessing the images by just passing the field into the popup works fine, but I'd rather test for the existence and only provide the link and thumbnail if there is one. Any thoughts on why this is happening and how to prevent it?
Cheers
Solved! Go to Solution.
Hi Lorne,
I believe you will receive the results you need by just passing the field for the Image. Here is an example of a pop-up with no URL in the field:
Here is a pop-up that contains a URL:
Hi Lorne,
I believe you will receive the results you need by just passing the field for the Image. Here is an example of a pop-up with no URL in the field:
Here is a pop-up that contains a URL:
That does the trick