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

1025
0
07-22-2016 01:09 PM
NickToscano
New Contributor II


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.

EXAMPLE:

     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.

0 Kudos
0 Replies