<?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 conditional color text label not working in Pro in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-conditional-color-text-label-not-working-in/m-p/1168209#M54456</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Remove the commas inside the CLR tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;the colors are backward&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I don't know your data structure, but from the screenshot it seems to be correct? The purple asset has an AssetID (1295), so it shows as green text. The yellow assets have AssetID "PRVT", so the labels are purple.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Maybe try using the actual field values instead of the DomainName.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 06:44:14 GMT</pubDate>
    <dc:creator>JohannesLindner</dc:creator>
    <dc:date>2022-04-27T06:44:14Z</dc:date>
    <item>
      <title>Arcade conditional color text label not working in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-conditional-color-text-label-not-working-in/m-p/1168182#M54452</link>
      <description>&lt;P&gt;I have been trying to create an arcade expression base on the condition of an attribute. I'm on the latest 2.9.2 of ArcGIS Pro.&lt;/P&gt;&lt;P&gt;Here is my expression in label properties:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(DomainName($feature, 'Private')=="Yes") {&lt;BR /&gt;return "&amp;lt;CLR red= '197', green= '0', blue='255'&amp;gt;"+ $feature.AssetId+ "&amp;lt;/CLR&amp;gt;"&lt;BR /&gt;}&lt;BR /&gt;else {&lt;BR /&gt;return "&amp;lt;CLR red= '56', green= '168', blue='0'&amp;gt;" + $feature.AssetId + "&amp;lt;/CLR&amp;gt;"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first color is purple&lt;/P&gt;&lt;P&gt;The second is green&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jen_ZumbadoHannibal_0-1651018272345.png" style="width: 563px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39908i3A13D3F3D58D3D99/image-dimensions/563x493?v=v2" width="563" height="493" role="button" title="Jen_ZumbadoHannibal_0-1651018272345.png" alt="Jen_ZumbadoHannibal_0-1651018272345.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But instead, I get the actual code and not the color text I want. Plus, the colors are backward. Purple sewer cleanout should match RBG color purple for when (DomainName($feature, 'Private') == "Yes") or else when it's "No", RBG color should be green.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 00:18:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-conditional-color-text-label-not-working-in/m-p/1168182#M54452</guid>
      <dc:creator>Jen_Zumbado-Hannibal</dc:creator>
      <dc:date>2022-04-27T00:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade conditional color text label not working in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-conditional-color-text-label-not-working-in/m-p/1168209#M54456</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Remove the commas inside the CLR tag.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;the colors are backward&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;I don't know your data structure, but from the screenshot it seems to be correct? The purple asset has an AssetID (1295), so it shows as green text. The yellow assets have AssetID "PRVT", so the labels are purple.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Maybe try using the actual field values instead of the DomainName.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 06:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-conditional-color-text-label-not-working-in/m-p/1168209#M54456</guid>
      <dc:creator>JohannesLindner</dc:creator>
      <dc:date>2022-04-27T06:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade conditional color text label not working in Pro</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcade-conditional-color-text-label-not-working-in/m-p/1168355#M54472</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/294341"&gt;@JohannesLindner&lt;/a&gt;&amp;nbsp;. Eliminating the commas worked great! I also corrected the symbology to match the colors. I had it backwards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again! You saved me from banging my head against the wall &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 14:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcade-conditional-color-text-label-not-working-in/m-p/1168355#M54472</guid>
      <dc:creator>Jen_Zumbado-Hannibal</dc:creator>
      <dc:date>2022-04-27T14:52:14Z</dc:date>
    </item>
  </channel>
</rss>

