AnsweredAssumed Answered

Add a link stored in a database into a popup

Question asked by gsalvador0 on Aug 17, 2017
Latest reply on Aug 17, 2017 by gsalvador0

Hi all,

 

I would like to add a link to my popupTemplate. The Map Service I am using has an attribute table with it. The attribute table has a field called "Online" that links to a specific webpage containing information about the shape clicked. How can I make that field a hyperlink in my popupTemplate? Here is how I thought it should be done:

    var BRADCADpopup = {
        title: "2016 BRADCAD Parcels",
        content: "<b>{Situs}</b><br>" +
        "<a href=\"{Online}\">Appraisal Details</a>"
    };

When I click on the hyperlink in the popup, I get a "Potentially dangerous Request.Path value was detected"

Outcomes