<?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 Arcade Text Color Dashboards List in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-text-color-dashboards-list/m-p/1344618#M8654</link>
    <description>&lt;P&gt;I have been struggling with what I thought was simple code for my list element in the dashboard. I just want the List element to show red when a particular date is shown: "December 29, 1899". I have reviewed other posts on this same thing and I can't get it to change at all. I have clicked from the globals and changed from this format for the $datapoint to the $datapoint["DateInspected"]. Nothing seems to work. I appreciate any insight.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MelanieBass_0-1698865897905.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84733i9799C6A0ADF67CEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MelanieBass_0-1698865897905.png" alt="MelanieBass_0-1698865897905.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2023 19:13:48 GMT</pubDate>
    <dc:creator>MelanieBass</dc:creator>
    <dc:date>2023-11-01T19:13:48Z</dc:date>
    <item>
      <title>Arcade Text Color Dashboards List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-text-color-dashboards-list/m-p/1344618#M8654</link>
      <description>&lt;P&gt;I have been struggling with what I thought was simple code for my list element in the dashboard. I just want the List element to show red when a particular date is shown: "December 29, 1899". I have reviewed other posts on this same thing and I can't get it to change at all. I have clicked from the globals and changed from this format for the $datapoint to the $datapoint["DateInspected"]. Nothing seems to work. I appreciate any insight.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MelanieBass_0-1698865897905.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84733i9799C6A0ADF67CEB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MelanieBass_0-1698865897905.png" alt="MelanieBass_0-1698865897905.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 19:13:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-text-color-dashboards-list/m-p/1344618#M8654</guid>
      <dc:creator>MelanieBass</dc:creator>
      <dc:date>2023-11-01T19:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Text Color Dashboards List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-text-color-dashboards-list/m-p/1344643#M8655</link>
      <description>&lt;P&gt;The value of DateInspected isn't just the date. It will contain the time and time zone information. If you just want the Date , you can format it using the &lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#text" target="_self"&gt;Text&lt;/A&gt; function for your When statement.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var color = When(Text($datapoint.DateInspected, 'MMMM D, Y') =='December 29, 1899', '#FF0000', '#000000');
return {
  textColor: color,
  backgroundColor: '',
  separatorColor:'',
  selectionColor: '',
  selectionTextColor: '',
  // attributes: {
    // attribute1: '',
    // attribute2: ''
  // }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This example will give you red text for the items that are on that date.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dash.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84738i86CDD576C7C86542/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dash.png" alt="dash.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 19:38:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-text-color-dashboards-list/m-p/1344643#M8655</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2023-11-01T19:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Text Color Dashboards List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-text-color-dashboards-list/m-p/1539725#M10293</link>
      <description>&lt;P&gt;I had a similar issue that I've been trying solve for weeks with no luck. This worked perfectly!&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 21:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-text-color-dashboards-list/m-p/1539725#M10293</guid>
      <dc:creator>MarkDuvall_ccec</dc:creator>
      <dc:date>2024-09-17T21:40:28Z</dc:date>
    </item>
  </channel>
</rss>

