Nicholas,
Thanks for the reply. Yes. I get the same results in my example. In the original layer data there is no formatting markup. However, for some reason when you pass the value to a javascript function within the popup the formatting is there for anything you have a label for. I have this for the description:
"Address: {hosp_street} <br/> ICU/Total Beds: {ICUCOMP:icucomp}"
The markup is passed to my icucomp function on anything I have a label specified for in my chart. Here is my icucomp function:
function icucomp(value, key, data) {
console.log("icucomp ", data)
return (data.icu_beds / data.hosp_beds).toFixed(3);
}
If I go back to ArcGIS javascript version 3.8 it doesn't include the formatting. However when I paste my code using my service into the sandbox it works fine. I am at a loss now since I just copy and pasted and it is working as expected in the sandbox. Any ideas on what could cause the difference?