I have a popup template that is set to show attachments from the feature layer. The popup displays the attachment as a hyperlink with the name of the source file on the ArcGIS Server, like: this_is_the_file.png. Is it possible to change this in the popup template to a generic text that points to the attachment, like I would with a URL hyperlink?
var popupTemplate = new PopupTemplate({
title: "Forecast Analysis",
fieldInfos: [
{
fieldName: "Name",
visible: true,
label: "Location"
},
{
fieldName: "Lat",
visible: true,
label: "Latitude"
},
{
fieldName: "Lon",
visible: true,
label: "Longitude",
}
],
showAttachments: true
});
Levi,
There is no configuration setting to control what you are wanting. The only way would be through direct Dom manipulation in your code to query for the correct classes in the Dom and then set the innerHtml of that Anchor element to something else.
OK. Thanks!