I followed these instructions to get my attachments to show up as an image, but it isn't working.
https://community.esri.com/t5/arcgis-online-blog/show-attachments-in-pop-ups-with-arcade/ba-p/890588
My attachments are pdfs
I am using Map Viewer Classic.
Here is an example of one of the attachments:
https://services2.arcgis.com/U2xK46wqV8LFc4DT/arcgis/rest/services/Bridges_for_weight_restriction/FeatureServer/16/1/attachments/3
(note that instead of services.arcgis my link is actually services2.arcgis, and instead of there being a /0/, mine is /16/ for all of my attachments, also my object id is ObjectID_1)
Here is what I put in the arcade expression:
var Part1 = 'https://services2.arcgis.com/U2xK46wqV8LFc4DT/arcgis/rest/services/Bridges_for_weight_restriction/FeatureServer/16/'
var ObjectID = $feature.OBJECTID_1
var Part2= "/attachments/"
var AttachID= $feature.AttachID
return Part1 + ObjectID + Part2 + AttachID
When I click Test, the Result link is correct so it should work.
The only thing is that the pop up window shows the image symbol and not the actual image.

Here are some screenshots:




If I right click and select copy link or open in new tab then it works, it just doesn't display the image. Could this be because it is a pdf?
