AnsweredAssumed Answered

Using the ESRI JS API How do I display coded value description in info window?

Question asked by nickteach888 on Jul 22, 2016

If I go ahead and define my info template for a layer like so:

infoTemplate: {

    title: '<b>District Info</b>',

    content: 'Location: ${local}<br>Name: ${lName}<br>Short Name: ${sName}<br>Status: ${statusValue}'




How do I make sure that the value displayed in these fields are the coded value description and not just the code.



     If the code is 1 and it represents the value "foo" how do I display "foo" in my Info Window instead of the value 1, b/c right now all I am is getting is 1.