AnsweredAssumed Answered

Fetching values of fields in a feature layer

Question asked by IsraAlhamood on Oct 21, 2014
Latest reply on Oct 22, 2014 by kenbuja

I'm trying to set the content of an infoTemplate of a feature layer depending on the field value(${OBJECTID})

for example:

if the ${OBJECTID} = 1 then infoTemplate.setContent("Something")

if the ${OBJECTID} = 2 then infoTemplate.setContent("Something2")

 

but whenever I do it it keeps giving me an error.

Any idea on how can I fetch the field value from the feature selected?

Outcomes