Hi Matt-
Has anyone solved how to return and display the description instead of the code for coded domain fields? For example, I am passing a defined popup template var as the value for the infoTemplate constructor option:
sources.push({
featureLayer: petitions,
searchFields: petFlds,//["PetitionID"],
displayField: "PetitionID",
exactMatch: false,
outFields: petFlds,
name: "Petition ID",
placeholder: "CPA-2013-C",
maxResults: 6,
maxSuggestions: 6,
//Create an InfoTemplate and include three fields
infoTemplate: plyPetitions,
enableSuggestions: true,
minCharacters: 0
});
So in this case the infoTemaplate option is pointing to my popupTemplate as infoTemplates do not by default read domain descriptions. If I have to configure an infoTemplate to handle domain descriptions I can but was hoping not to have to-
Thanks
David