HOW TO
When adding features with photo attachments to a map, the pop-up can be configured to display the attachments by selecting the Gallery option in the 'Display attachment as' pop-up setting. However, when selecting the Gallery option, no attachment name is displayed. As a solution, the attachment title can be specified and displayed on the pop-up in the Title section of the settings. Another alternative is to use an Arcade expression to specify the name as the attachment title in the pop-up, and this article describes the workflow.
The following image shows an attachment without the title in the pop-up.
var Attachment_name = Attachments($feature) Attachment_name[0].name
var Attachmentname = Attachments($feature) var namelist = []; for (var a in Attachmentname){ Insert(namelist,a, Attachmentname[a].name ) } return namelist
The following image shows the attachment with the title in the pop-up.
Article ID: 000027123
Get help from ArcGIS experts
Download the Esri Support App