<?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: popupTemplate defaultValue Arcade expression displays number value instead of text in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121830#M75452</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Look at this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/td-p/365113" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/td-p/365113&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Dec 2021 19:25:20 GMT</pubDate>
    <dc:creator>ABishop</dc:creator>
    <dc:date>2021-12-01T19:25:20Z</dc:date>
    <item>
      <title>popupTemplate defaultValue Arcade expression displays number value instead of text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121803#M75451</link>
      <description>&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;fieldName: "CH_CHEMICALUSED2",
label: "Chemical Used #2 (Active Ingredient)",&lt;/LI-CODE&gt;&lt;P&gt;the attribute in popupTemplate is displayed correctly&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 318px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28616iF4294A9AD7F51191/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;fieldName: "expression/defaultChem2"

expressionInfos: [{
           name: "defaultChem2",
           title: "Chemical Used #2 (Active Ingredient)",
           expression: "DefaultValue($feature.CH_CHEMICALUSED2, 'N/A')"
         }&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="luckachi_0-1638384349492.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/28617i05CA58EB6828B215/image-size/medium?v=v2&amp;amp;px=400" role="button" title="luckachi_0-1638384349492.png" alt="luckachi_0-1638384349492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 18:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121803#M75451</guid>
      <dc:creator>luckachi</dc:creator>
      <dc:date>2021-12-01T18:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate defaultValue Arcade expression displays number value instead of text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121830#M75452</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Look at this post:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/td-p/365113" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-questions/how-can-an-attribute-s-domain-description-be/td-p/365113&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 19:25:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121830#M75452</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-01T19:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate defaultValue Arcade expression displays number value instead of text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121875#M75456</link>
      <description>&lt;P&gt;Thank you! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 20:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121875#M75456</guid>
      <dc:creator>luckachi</dc:creator>
      <dc:date>2021-12-01T20:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate defaultValue Arcade expression displays number value instead of text</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121878#M75457</link>
      <description>&lt;P&gt;You are welcome!&amp;nbsp; Glad you got it figure it out!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Dec 2021 20:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-defaultvalue-arcade-expression/m-p/1121878#M75457</guid>
      <dc:creator>ABishop</dc:creator>
      <dc:date>2021-12-01T20:27:23Z</dc:date>
    </item>
  </channel>
</rss>

