<?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 Expression to Control Selection Color in Dashboard List in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1321898#M8361</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see anything wrong with the arcade expression. Are you sure your field name and/or value is correct? One thing I like to do if I'm having issues returning colors, is to return it as an attribute and add that to the list so that I can see exactly what value is being returned. This helps me narrow down where the issue is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenniferAcunto_0-1692821971480.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78980i1C8DA21E16BF9DEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JenniferAcunto_0-1692821971480.png" alt="JenniferAcunto_0-1692821971480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also note, that the selection color doesn't appear until you have set up an action in your list. Without an action setup, clicking on a list item doesn't select anything and therefore doesn't bring up the selection color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Aug 2023 20:25:42 GMT</pubDate>
    <dc:creator>JenniferAcunto</dc:creator>
    <dc:date>2023-08-23T20:25:42Z</dc:date>
    <item>
      <title>Arcade Expression to Control Selection Color in Dashboard List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1321605#M8355</link>
      <description>&lt;P&gt;Hello! Looking for help writing Arcade script to define a specific selection color for a variable in a Dashboard List. The script I have so far is written out below. When I run the script the selection color does not show up in my Dashboard List. Please help, and thank&amp;nbsp; you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var green = When($datapoint.project_status == "Active / Awarded", '#55ff00','')&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;textColor: '',&lt;BR /&gt;backgroundColor: '',&lt;BR /&gt;separatorColor:'',&lt;BR /&gt;selectionColor: green,&lt;BR /&gt;selectionTextColor: '',&lt;BR /&gt;// attributes: {&lt;BR /&gt;// attribute1: '',&lt;BR /&gt;// attribute2: ''&lt;BR /&gt;// }&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 13:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1321605#M8355</guid>
      <dc:creator>BaileyHorn</dc:creator>
      <dc:date>2023-08-23T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Control Selection Color in Dashboard List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1321898#M8361</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't see anything wrong with the arcade expression. Are you sure your field name and/or value is correct? One thing I like to do if I'm having issues returning colors, is to return it as an attribute and add that to the list so that I can see exactly what value is being returned. This helps me narrow down where the issue is.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenniferAcunto_0-1692821971480.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/78980i1C8DA21E16BF9DEC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JenniferAcunto_0-1692821971480.png" alt="JenniferAcunto_0-1692821971480.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also note, that the selection color doesn't appear until you have set up an action in your list. Without an action setup, clicking on a list item doesn't select anything and therefore doesn't bring up the selection color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Aug 2023 20:25:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1321898#M8361</guid>
      <dc:creator>JenniferAcunto</dc:creator>
      <dc:date>2023-08-23T20:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Control Selection Color in Dashboard List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1322115#M8364</link>
      <description>&lt;P&gt;Jen, Thank you for the help. A Follow up question for you. How would I change the code to select/highlight/change text color of a specific line of text on my Dashboard List. The script I am running now (see script below) highlights the entire box on my list and changes all of the text color too (See image below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var colorfas = When (&lt;BR /&gt;$datapoint.forecast_actual_scheduled == "Forecast (F)", '#bee8ff',&lt;BR /&gt;$datapoint.forecast_actual_scheduled == "Actual (A)", '#d6d6d6',&lt;BR /&gt;$datapoint.forecast_actual_scheduled == "Scheduled (S)", '#ffffff', 'n/a')&lt;/P&gt;&lt;P&gt;var colorprojectstatus = When (&lt;BR /&gt;$datapoint.project_status == "Active / Awarded", '#55ff00',&lt;BR /&gt;$datapoint.project_status == "Cancelled", '#ff0000',&lt;BR /&gt;$datapoint.project_status == "Complete", '#ff00c5',&lt;BR /&gt;$datapoint.project_status == "In Progress", '#0070ff',&lt;BR /&gt;$datapoint.project_status == "On Hold", '#ffff00', 'n/a')&lt;/P&gt;&lt;P&gt;return {&lt;BR /&gt;textColor: colorfas,&lt;BR /&gt;backgroundColor: colorprojectstatus,&lt;BR /&gt;separatorColor: '',&lt;BR /&gt;selectionColor: '',&lt;BR /&gt;selectionTextColor: '',&lt;BR /&gt;// attributes: {&lt;BR /&gt;// attribute1: '',&lt;BR /&gt;// attribute2: ''&lt;BR /&gt;// }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BaileyHorn_0-1692886079946.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79044i5B20B75060C15F4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BaileyHorn_0-1692886079946.png" alt="BaileyHorn_0-1692886079946.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:09:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1322115#M8364</guid>
      <dc:creator>BaileyHorn</dc:creator>
      <dc:date>2023-08-24T14:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Expression to Control Selection Color in Dashboard List</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1322182#M8365</link>
      <description>&lt;P&gt;You would need to return the color hex value as an attribute and then plug that directly into your HTML of the list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JenniferAcunto_0-1692892100899.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/79068i389AABF7CDFAD436/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JenniferAcunto_0-1692892100899.png" alt="JenniferAcunto_0-1692892100899.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:50:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/arcade-expression-to-control-selection-color-in/m-p/1322182#M8365</guid>
      <dc:creator>JenniferAcunto</dc:creator>
      <dc:date>2023-08-24T15:50:37Z</dc:date>
    </item>
  </channel>
</rss>

