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?