jbenson

Identify ??? Popup sample: Customize for hyperlink

Discussion created by jbenson on Nov 16, 2011
Latest reply on Oct 7, 2012 by amarsden
I am trying to customize the Identify �?? Popup sample (under Find and Identify) from samples at http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm?Legend such that a hyperlink is enabled from the field name.  At present the hyperlink appears in the window, but it is not clickable.  I would like to instead have an alias name for the hyperlink.  When a user clicks on the name the hyperlink is activated.   In the function executeIdentifyTask (evt)  { there is an else if statement

else if (result.layerName === 'Building Footprints'){
              var template = new esri.InfoTemplate("", "Parcel ID: ${PARCELID}");
              feature.setInfoTemplate(template);

I am presuming PARCELID if the field name.  How would I make PARCELID as a clickable hyperlink?  Is there a way to put an alias name on PARCELID so the user would see somethink like URL or Link that would be clickable?

Thanks for any suggestions.

Outcomes