JSkinn3, thanks for the info. I'm actually using non-AMD modules trying to rewrite it to match my application. I've tried giving it a try, but can't figure out where I'm going wrong. Any help would be appreciated!
var featureLayer = new esri.layers.FeatureLayer(<service url>,{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
});
featurelayer.on("click", openHyperlink);
function openHyperlink(evt){
url = evt.graphic.attributes.<field name>;
window.open(url);
}
Hi Christopher,
You could do the following:
var featureLayer = new FeatureLayer(<service url>,{
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
on(featureLayer, "click", function(evt){
url = evt.graphic.attributes.<field name>;
window.open(url);
})