Select to view content in your preferred language

Identify ??? Popup sample: Customize for hyperlink

5300
10
11-16-2011 06:47 AM
JanBenson
Deactivated User
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.
0 Kudos
10 Replies
AdrianMarsden
Honored Contributor
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


ACM

PS just looked at that, and I really must change that layers symbology, I can hardly see it! This extent has a few examples as of today http://maps2.eastdevon.gov.uk/mapping/assets/?x1=311112&y1=87627&x2=311789&y2=88262
0 Kudos