I am trying to use an Arcade expression to display coded values in a popup in ArcGIS Online, but it is not working. I am using the code from the decode example. It does not display in the popup. No error message is given in the popup.
var code = $feature.dn;
var decodedValue = Decode(code, 2, 'Non-Severe', 3, 'Marginal', 4, 'Slight', 'Other');
I am not the author of the map service. The dn field is an esriFieldTypeDouble. Thank you.
