<?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 Conditional Formatting in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/conditional-formatting/m-p/138642#M6767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a layer on AGOL that changes color when a condition is met. I am wondering if I can do this on a second step..for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an attribute is "0" then the formatting is blue, if it is any other number it is yellow. After that, I want to say, if it is "approved" it turns green. So&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unreviewed and Number = 0 means blue&lt;/P&gt;&lt;P&gt;Number is not 0 and Unreviewed = yellow&lt;/P&gt;&lt;P&gt;Number is not 0 and Approved = green&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Nov 2019 16:41:14 GMT</pubDate>
    <dc:creator>NWEdisonTeam</dc:creator>
    <dc:date>2019-11-11T16:41:14Z</dc:date>
    <item>
      <title>Conditional Formatting</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/conditional-formatting/m-p/138642#M6767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a layer on AGOL that changes color when a condition is met. I am wondering if I can do this on a second step..for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an attribute is "0" then the formatting is blue, if it is any other number it is yellow. After that, I want to say, if it is "approved" it turns green. So&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unreviewed and Number = 0 means blue&lt;/P&gt;&lt;P&gt;Number is not 0 and Unreviewed = yellow&lt;/P&gt;&lt;P&gt;Number is not 0 and Approved = green&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Nov 2019 16:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/conditional-formatting/m-p/138642#M6767</guid>
      <dc:creator>NWEdisonTeam</dc:creator>
      <dc:date>2019-11-11T16:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Formatting</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/conditional-formatting/m-p/138643#M6768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can create a custom symbol using arcade.&amp;nbsp; Change style, choose an attribute to show, scroll to the bottom and choose custom expression.&amp;nbsp; The following arcade statement should work.&amp;nbsp; You will need to change the field names for "Reviewed" and "Num" to match your layers field names.&amp;nbsp; This link will also provide help with using arcade to create custom symbology&amp;nbsp;&amp;nbsp;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/mapping/mapping/use-arcade-expressions-to-map-your-ideas/" title="https://www.esri.com/arcgis-blog/products/mapping/mapping/use-arcade-expressions-to-map-your-ideas/"&gt;Use Arcade Expressions to Map Your Ideas&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if($feature.Reviewed == 'Unreviewed'&amp;amp;&amp;amp; $feature.Num==0){&lt;BR /&gt; return "blue"&lt;BR /&gt;}&lt;BR /&gt;else if($feature.Reviewed == 'Unreviewed'&amp;amp;&amp;amp; $feature.Num!=0){&lt;BR /&gt; return "yellow"&lt;BR /&gt;}&lt;BR /&gt;else if($feature.Reviewed == 'Approved' &amp;amp;&amp;amp; $feature.Num!=0){&lt;BR /&gt; return 'green'&lt;BR /&gt;}&lt;BR /&gt;else if($feature.Reviewed == 'Approved' &amp;amp;&amp;amp;$feature.Num==0){&lt;BR /&gt; return 'red'&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:15:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/conditional-formatting/m-p/138643#M6768</guid>
      <dc:creator>EdApalinski</dc:creator>
      <dc:date>2019-11-13T15:15:16Z</dc:date>
    </item>
  </channel>
</rss>

