Select to view content in your preferred language

Arcade Popup Decode Error

529
1
06-13-2023 12:55 PM
MichaelSinclairStantec
Emerging Contributor

I have been trying to get a few values switched over between fieldnames/legal names/data names and the decode function feels like the way to do it but it just doesn't work for me. I have seen people in other coding environments use a very different syntax or array based stuff that I don't know how to do in ArcGIS Online Popup window.

MichaelSinclairStantec_0-1686685820328.png

It is clearly not working the way I think it does as listed here (https://developers.arcgis.com/arcade/function-reference/logical_functions/#decode) because that above code looks like this and when I try to add a default value it just entirely breaks.

MichaelSinclairStantec_1-1686685921937.png

 

0 Kudos
1 Reply
jcarlson
MVP Esteemed Contributor

The decode values should not be an array. Remove the square brackets and it should work.

- Josh Carlson
Kendall County GIS
0 Kudos