I am attempting to use the decode Arcade function within a Field Maps expression to auto populate a value within one field (Place_Name) based on the coded value from another field (Outfall_ID). The user would add a feature in the map and the form would allow them to select a value for Outfall_ID from a drop-down. Based on the value they select for the Outfall_ID the Place_Name field would auto-populate a value. The following is the list of values I have for the Outfall_ID field with the associated code:
![gcainak_0-1716332429087.png gcainak_0-1716332429087.png](https://community.esri.com/t5/image/serverpage/image-id/104876iA104DE48AD9D3D08/image-dimensions/565x143?v=v2)
The Field Maps from is the following:
![gcainak_1-1716332540966.png gcainak_1-1716332540966.png](https://community.esri.com/t5/image/serverpage/image-id/104877i9F99BF30BD681B07/image-dimensions/542x225?v=v2)
and the calculated expression for Place_Name contains this Arcade.
![gcainak_3-1716332849707.png gcainak_3-1716332849707.png](https://community.esri.com/t5/image/serverpage/image-id/104881iF417FE34FBE0EA89/image-dimensions/588x72?v=v2)
I'm assuming if the user chooses the 10-1 value from the Outfall_ID drop down, then it would return 'place 1'? However, when I test it in the Field Maps mobile app by adding a new feature it only returns the default value of 'No Place' regardless of my selection. Perhaps I am not fully understanding how the decode function works in Arcade?