<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Auto Populate Field using Arcade Expression in Field Map in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/auto-populate-field-using-arcade-expression-in/m-p/1476658#M7048</link>
    <description>&lt;P&gt;I am attempting to use the decode Arcade function within a Field Maps expression to auto populate a value within one field (Place_Name)&amp;nbsp; 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:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcainak_0-1716332429087.png" style="width: 565px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104876iA104DE48AD9D3D08/image-dimensions/565x143?v=v2" width="565" height="143" role="button" title="gcainak_0-1716332429087.png" alt="gcainak_0-1716332429087.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Field Maps from is the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcainak_1-1716332540966.png" style="width: 542px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104877i9F99BF30BD681B07/image-dimensions/542x225?v=v2" width="542" height="225" role="button" title="gcainak_1-1716332540966.png" alt="gcainak_1-1716332540966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the calculated expression for Place_Name contains this Arcade.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcainak_3-1716332849707.png" style="width: 588px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104881iF417FE34FBE0EA89/image-dimensions/588x72?v=v2" width="588" height="72" role="button" title="gcainak_3-1716332849707.png" alt="gcainak_3-1716332849707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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&amp;nbsp; 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?&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 23:11:33 GMT</pubDate>
    <dc:creator>gcainak</dc:creator>
    <dc:date>2024-05-21T23:11:33Z</dc:date>
    <item>
      <title>Auto Populate Field using Arcade Expression in Field Map</title>
      <link>https://community.esri.com/t5/developers-questions/auto-populate-field-using-arcade-expression-in/m-p/1476658#M7048</link>
      <description>&lt;P&gt;I am attempting to use the decode Arcade function within a Field Maps expression to auto populate a value within one field (Place_Name)&amp;nbsp; 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:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcainak_0-1716332429087.png" style="width: 565px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104876iA104DE48AD9D3D08/image-dimensions/565x143?v=v2" width="565" height="143" role="button" title="gcainak_0-1716332429087.png" alt="gcainak_0-1716332429087.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The Field Maps from is the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcainak_1-1716332540966.png" style="width: 542px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104877i9F99BF30BD681B07/image-dimensions/542x225?v=v2" width="542" height="225" role="button" title="gcainak_1-1716332540966.png" alt="gcainak_1-1716332540966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and the calculated expression for Place_Name contains this Arcade.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcainak_3-1716332849707.png" style="width: 588px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/104881iF417FE34FBE0EA89/image-dimensions/588x72?v=v2" width="588" height="72" role="button" title="gcainak_3-1716332849707.png" alt="gcainak_3-1716332849707.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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&amp;nbsp; 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?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 23:11:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/auto-populate-field-using-arcade-expression-in/m-p/1476658#M7048</guid>
      <dc:creator>gcainak</dc:creator>
      <dc:date>2024-05-21T23:11:33Z</dc:date>
    </item>
  </channel>
</rss>

