<?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 Re: Arcade Popup Decode Error in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-decode-error/m-p/1298899#M1238</link>
    <description>&lt;P&gt;The decode values should not be an array. Remove the square brackets and it should work.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 20:41:53 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2023-06-13T20:41:53Z</dc:date>
    <item>
      <title>Arcade Popup Decode Error</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-decode-error/m-p/1298844#M1237</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelSinclairStantec_0-1686685820328.png" style="width: 756px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73107iDD36A7D15983C148/image-dimensions/756x119?v=v2" width="756" height="119" role="button" title="MichaelSinclairStantec_0-1686685820328.png" alt="MichaelSinclairStantec_0-1686685820328.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is clearly not working the way I think it does as listed here (&lt;A href="https://developers.arcgis.com/arcade/function-reference/logical_functions/#decode" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/logical_functions/#decode&lt;/A&gt;) because that above code looks like this and when I try to add a default value it just entirely breaks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MichaelSinclairStantec_1-1686685921937.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73109i53C2B0A7DB701AC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MichaelSinclairStantec_1-1686685921937.png" alt="MichaelSinclairStantec_1-1686685921937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 19:55:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-decode-error/m-p/1298844#M1237</guid>
      <dc:creator>MichaelSinclairStantec</dc:creator>
      <dc:date>2023-06-13T19:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Popup Decode Error</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-decode-error/m-p/1298899#M1238</link>
      <description>&lt;P&gt;The decode values should not be an array. Remove the square brackets and it should work.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 20:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/arcade-popup-decode-error/m-p/1298899#M1238</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2023-06-13T20:41:53Z</dc:date>
    </item>
  </channel>
</rss>

