<?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: Background color change according to attribute in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/background-color-change-according-to-attribute/m-p/1116291#M42929</link>
    <description>&lt;P&gt;In your attempt, you've got an extra quotation mark in the style tag. You'll want the expression to be within the quotes with everything else. Try this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;div style="padding:5px;background-color:{expression/expr0}"&amp;gt;&amp;lt;b&amp;gt;Region&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;table style="width:100%;"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 14:09:33 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-11-12T14:09:33Z</dc:date>
    <item>
      <title>Background color change according to attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/background-color-change-according-to-attribute/m-p/1116255#M42926</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got to this post&amp;nbsp;&lt;A title="font color in popup" href="https://github.com/Esri/arcade-expressions/blob/master/popup/Match-Popup-to-Map-Value.md" target="_self"&gt;Match-Popup-to-Map-Value.md&lt;/A&gt;&amp;nbsp;. that explains how to change the color of the text according to the attribute.&lt;/P&gt;&lt;P&gt;I was trying to do the same for background.&amp;nbsp;&lt;/P&gt;&lt;P&gt;my arcade code is exactly the same as in the post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;my original html code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;div style="padding:5px;background-color:rgb(31, 209, 70)"&amp;gt;&amp;lt;b&amp;gt;Region&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;table style="width:100%;"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And this is my failed attempt...&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;div style="padding:5px;background-color:"{expression/expr0}"&amp;gt;&amp;lt;b&amp;gt;Region&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;table style="width:100%;"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help is welcome.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 10:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/background-color-change-according-to-attribute/m-p/1116255#M42926</guid>
      <dc:creator>PSGeo1</dc:creator>
      <dc:date>2021-11-12T10:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Background color change according to attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/background-color-change-according-to-attribute/m-p/1116291#M42929</link>
      <description>&lt;P&gt;In your attempt, you've got an extra quotation mark in the style tag. You'll want the expression to be within the quotes with everything else. Try this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;&amp;lt;div style="padding:5px;background-color:{expression/expr0}"&amp;gt;&amp;lt;b&amp;gt;Region&amp;lt;/b&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;table style="width:100%;"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 14:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/background-color-change-according-to-attribute/m-p/1116291#M42929</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-11-12T14:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Background color change according to attribute</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/background-color-change-according-to-attribute/m-p/1116294#M42930</link>
      <description>&lt;P&gt;thx!!! cheers&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 14:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/background-color-change-according-to-attribute/m-p/1116294#M42930</guid>
      <dc:creator>PSGeo1</dc:creator>
      <dc:date>2021-11-12T14:15:36Z</dc:date>
    </item>
  </channel>
</rss>

