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?
This may help. I have my site that is Independent of script for the ID popup. It cycles the layers and builds up the template from all exposed field aliases.
I also get a "more Info" hyperlink, based on the contents of a particular field - this is defined in the layer description in the MXD
You'll see a working example here http://maps2.eastdevon.gov.uk/mapping/assets/ you'll need to go the Planning & Policy group in the TOC (Key and other maps accordion) and select current planning applications to see the "more Info" link in action