popupTemplate defaultValue Arcade expression displays number value instead of text

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

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
ABishop
Regular Contributor II
3 Replies
ABishop
Regular Contributor II
luckachi
Occasional Contributor

Thank you! :)

ABishop
Regular Contributor II

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

Amanda Bishop, GISP
0 Kudos