I am trying to use the DefaultValue Arcade expression within my popup but it seems like it is causing an issue with how the attribute is displayed.
If I use this:
fieldName: "CH_CHEMICALUSED2",
label: "Chemical Used #2 (Active Ingredient)",
the attribute in popupTemplate is displayed correctly
but when I try to use the DefaultValue arcade expression, to display a default value of "N/A" if there is no additional chemicals used, it reverts back to the domain number.
fieldName: "expression/defaultChem2"
expressionInfos: [{
name: "defaultChem2",
title: "Chemical Used #2 (Active Ingredient)",
expression: "DefaultValue($feature.CH_CHEMICALUSED2, 'N/A')"
}
Solved! Go to Solution.
Hello,
Look at this post: https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/td-p...
Hello,
Look at this post: https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/td-p...
Thank you! 🙂
You are welcome! Glad you got it figure it out!