AnsweredAssumed Answered

popupTemplate Change Attachment Display Text

Question asked by LeviCecil on Aug 22, 2017
Latest reply on Aug 24, 2017 by LeviCecil

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.pngIs 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
          });

Outcomes