popupTemplate defaultValue Arcade expression displays number value instead of text

653
3
Jump to solution
12-01-2021 10:47 AM
luckachi
Occasional Contributor III

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

image.png

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')"
         }

luckachi_0-1638384349492.png

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
3 Replies
ABishop
MVP Regular Contributor
luckachi
Occasional Contributor III

Thank you! 🙂

ABishop
MVP Regular Contributor

You are welcome!  Glad you got it figure it out!

Amanda Bishop, GISP
0 Kudos