<?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: Arrcade - Color Text Conditionally in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167688#M54413</link>
    <description>Thanks Ken. I’m having a hard time believing this can’t be done on&amp;nbsp;layout text but perhaps that’s the situation. Thanks.&amp;nbsp;&lt;BR /&gt;</description>
    <pubDate>Mon, 25 Apr 2022 19:41:16 GMT</pubDate>
    <dc:creator>GRmapper</dc:creator>
    <dc:date>2022-04-25T19:41:16Z</dc:date>
    <item>
      <title>Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1165574#M54181</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have an Arcade expression that conditionally colors a piece of text in a layout.&amp;nbsp; If I remove the CLR bits it works but with a default color of black. I'd like to get it working with the color assignment if possible. Here is the current statement that proves out as working but I don't get the color I just get the actual color statement characters.&lt;/P&gt;&lt;P&gt;I'd appreciate any coding help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39285i69BEDF5009F269AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Expression.png" alt="Expression.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 11:26:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1165574#M54181</guid>
      <dc:creator>GRmapper</dc:creator>
      <dc:date>2022-04-19T11:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1165612#M54182</link>
      <description>&lt;P&gt;I have a similar issue when trying to color code results for Arc Flash and Grounding data.&amp;nbsp; I have a way to do it what works in a dashboard but it would not work in a pop up.&amp;nbsp; What I ended up doing was using an iff statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iif($feature.ENERGYSWD &amp;gt;=8 &amp;amp;&amp;amp; $feature.ENERGYSWD &amp;lt;9,$feature.Energy___SWD,'')&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobertBorchert_1-1650372639953.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39296i280948AFE59378AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobertBorchert_1-1650372639953.png" alt="RobertBorchert_1-1650372639953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then color coded each expression.&amp;nbsp; If the second part of the iff is simply '' then it shows nothing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RobertBorchert_2-1650372732935.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39297i07638E1D42DCC282/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RobertBorchert_2-1650372732935.png" alt="RobertBorchert_2-1650372732935.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I originally tried this which works in a Dashboard&lt;/P&gt;&lt;P&gt;//Variable&lt;BR /&gt;var mad = (iif($feature.ENERGYMAD&amp;gt;= 2 &amp;amp;&amp;amp; $feature.ENERGYMAD &amp;lt;= 7.9,'g',(iif($feature.ENERGYMAD&amp;gt;= 8 &amp;amp;&amp;amp; $feature.ENERGYMAD &amp;lt;= 8.9,'y',(iif($feature.ENERGYMAD&amp;gt;= 9 &amp;amp;&amp;amp; $feature.ENERGYMAD &amp;lt;= 12.9,'o',(iif($feature.ENERGYMAD&amp;gt;= 13 &amp;amp;&amp;amp; $feature.ENERGYMAD &amp;lt;= 24.9,'p',(iif($feature.ENERGYMAD&amp;gt;= 25 &amp;amp;&amp;amp; $feature.ENERGYMAD &amp;lt;= 39.9,'r',(iif($feature.ENERGYMAD&amp;gt;= 40 &amp;amp;&amp;amp; $feature.ENERGYMAD &amp;lt;= 160,'b',''))))))))))))&lt;BR /&gt;//return mad&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//FUNCTION COLOR CODE&lt;BR /&gt;function colorCode(x){&lt;BR /&gt;return Decode(&lt;BR /&gt;x,&lt;BR /&gt;'g', 'Green',&lt;BR /&gt;'y', 'Yellow',&lt;BR /&gt;'o','Orange',&lt;BR /&gt;'p','Pink',&lt;BR /&gt;'r','Red',&lt;BR /&gt;'b','Black',&lt;BR /&gt;'Gray'&lt;BR /&gt;)&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;//RETURNS&lt;BR /&gt;return {&lt;BR /&gt;attributes:{&lt;BR /&gt;mad_col:colorCode(mad),&lt;BR /&gt;swd_col:colorCode(mad)&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;lt;p style="color:{expression/mad_col}"&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;{Energy___MAD}&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 12:53:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1165612#M54182</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2022-04-19T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1165657#M54186</link>
      <description>&lt;P&gt;That code works properly when I test it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="label1.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39307iC9E7694920C13131/image-size/medium?v=v2&amp;amp;px=400" role="button" title="label1.png" alt="label1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Usually, the only thing that breaks the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm#GUID-59DB706C-AF22-48C0-9C7B-3EF17C6FE6EA" target="_self"&gt;text formatting&lt;/A&gt; is having special characters (either "&amp;lt;" or "&amp;amp;") in an attribute, but you aren't including a field in your return string.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 14:38:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1165657#M54186</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-04-19T14:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167606#M54405</link>
      <description>&lt;P&gt;Well I tried the example above with no success. Strange that some tags work as expected but &amp;lt;CLR&amp;gt;&amp;lt;/CLR&amp;gt; doesn't seem to in my situation. I attached a couple more pics to show. Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Working_Without_Tag.png" style="width: 792px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39798i2978D0D93CEC93C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Working_Without_Tag.png" alt="Working_Without_Tag.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CLR_Tag_Not_Working.png" style="width: 783px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39797i91BD42672E238066/image-size/large?v=v2&amp;amp;px=999" role="button" title="CLR_Tag_Not_Working.png" alt="CLR_Tag_Not_Working.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 17:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167606#M54405</guid>
      <dc:creator>GRmapper</dc:creator>
      <dc:date>2022-04-25T17:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167652#M54407</link>
      <description>&lt;P&gt;Could you copy your expression directly into a reply (rather than posting an image) to see if anything going on?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 18:42:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167652#M54407</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-04-25T18:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167665#M54408</link>
      <description>&lt;P&gt;Here is another version that provides the same issue but is slightly different from the example. Thanks.&lt;/P&gt;&lt;P&gt;var val = $feature.CABLE_IS_PRE_ENGINEERED&lt;/P&gt;&lt;P&gt;if (val == 1) {&lt;BR /&gt;return "&amp;lt;CLR red = '0' green = '169' blue = '130'&amp;gt;" + "Complete" + "&amp;lt;/CLR&amp;gt;"&lt;BR /&gt;} else if (val == 0) {&lt;BR /&gt;return "Incomplete"&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 18:55:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167665#M54408</guid>
      <dc:creator>GRmapper</dc:creator>
      <dc:date>2022-04-25T18:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167681#M54410</link>
      <description>&lt;P&gt;In my code example I a //return.&amp;nbsp; when I remove the // it returns the value I am looking for.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It just is not working on the pop up with the html markup I show at the bottom of my example.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works in a dashboard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 19:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167681#M54410</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2022-04-25T19:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167682#M54411</link>
      <description>&lt;P&gt;My apologies...my testing was assuming this was a label instead of layout text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 19:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167682#M54411</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-04-25T19:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167684#M54412</link>
      <description>&lt;P&gt;I started using attribute driving formatting for labels. Works pretty well for when he have a number of features in the same class but need to be formatted slightly different.&amp;nbsp; Just write one line of code and have it displayed by attributes.&amp;nbsp; We don't use it widely yet, but when we get our system in Utility Network we will us it a lot more.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 19:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167684#M54412</guid>
      <dc:creator>RobertBorchert</dc:creator>
      <dc:date>2022-04-25T19:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167688#M54413</link>
      <description>Thanks Ken. I’m having a hard time believing this can’t be done on&amp;nbsp;layout text but perhaps that’s the situation. Thanks.&amp;nbsp;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Apr 2022 19:41:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167688#M54413</guid>
      <dc:creator>GRmapper</dc:creator>
      <dc:date>2022-04-25T19:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167716#M54415</link>
      <description>&lt;P&gt;I just tested this with a Dynamic Text element (a table) and I get some interesting results. First I used your expression and it worked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="color1.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39818iD2C8ECA7ADC0C2ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="color1.png" alt="color1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I then changed the second evaluation to another formatting tag and it worked.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="color2.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39819i96C11C8B67E7AD53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="color2.png" alt="color2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I added the two tags together, it broke&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="color3.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39820iF636270652959F9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="color3.png" alt="color3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 20:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1167716#M54415</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-04-25T20:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1222136#M61097</link>
      <description>&lt;P&gt;Hey everyone! Yesterday I worked with&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/44167"&gt;@JacquiMartin&lt;/a&gt;&amp;nbsp;and &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/94730"&gt;@DallasCrow&lt;/a&gt;&amp;nbsp;&amp;nbsp;to come up with a solution for having font color changes based on conditional statements in a layout (more specifically, a map series). When applying a dynamic text it generates some XML tags in the Format Text pane. This is working by creating a duplicate tag that we are passing the formatting tags into without closing. We are closing tags manually with &amp;lt;/CLR&amp;gt; at the end in step 5, but this can be dynamic also. Say you want to change the color, set to bold and italic based on conditional arcade, you would just add the conditions in the first-most tag and copy and addf another closing tag with the same conditional statements in the first-most tag but only return closing tags corresponsing to the opening tags.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is a work-around and prone to breaking when the font extends outside the bounding box. These are not readily apparent and usually appear after selecting a different page in the map series. Also, pay attention to the spaces and work with the&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/text/text-formatting-tags.htm#ESRI_SECTION1_015D6B880F4B40D0A44A629F8948AA8E" target="_self"&gt; labeling syntax located here&lt;/A&gt;.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. Create a dynamic text element and select Table Attribute for the source. In the Arcade select the field you want dispayed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_1-1665763659754.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53672i33D910E5A8A3181D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_1-1665763659754.png" alt="GeoJason_1-1665763659754.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. Click on the view source tag above the dynamic text box tag area. Copy the source code and paste a second copy of it above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_0-1665763510310.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53671iE483E97F05A91F7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_0-1665763510310.png" alt="GeoJason_0-1665763510310.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_3-1665763910533.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53674i64E15098B62A27D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_3-1665763910533.png" alt="GeoJason_3-1665763910533.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You should now have 2 tags when you switch back to tag view.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;3. Click on the first-most tag (the one we pasted in the front, really it just needs to be the first tag not the second).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;4. Edit the Arcade to be something similar to this...&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IIF($feature.hexagonID == 401, "&amp;lt;CLR red = '4' green = '56' blue = '106' &amp;gt;", "&amp;lt;CLR red = '0' green = '0' blue = '0' &amp;gt;")&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_4-1665765127300.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53675i359E88F8AF9E0FC5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_4-1665765127300.png" alt="GeoJason_4-1665765127300.png" /&gt;&lt;/span&gt;&lt;BR /&gt;*Note mind the spaces. Formating has to be exact in the CLR tags.&lt;BR /&gt;&lt;BR /&gt;Click OK and you should see this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_5-1665765268712.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53676iCA1EC641CD7F81EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_5-1665765268712.png" alt="GeoJason_5-1665765268712.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_6-1665765293951.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53677iFC91403F9787F6CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_6-1665765293951.png" alt="GeoJason_6-1665765293951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;5. Add the close tag for the CLR. &amp;lt;/CLR&amp;gt; goes directly in the tag section at the end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_7-1665765380385.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53678i0094F9367D39D4E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_7-1665765380385.png" alt="GeoJason_7-1665765380385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You should now see this in your map series or layout.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_8-1665765438847.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53679i07D2BA5B9940AF76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_8-1665765438847.png" alt="GeoJason_8-1665765438847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For reference here is section 489...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_9-1665765535636.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53680i0B2DC294E25F7F9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_9-1665765535636.png" alt="GeoJason_9-1665765535636.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and here is a screenshot of the entire project...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_10-1665765579838.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53681i3AC0C1B61D92E802/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_10-1665765579838.png" alt="GeoJason_10-1665765579838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Be careful not to double-click on a bounding box after this solution is in place otherwise...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GeoJason_11-1665766179078.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53682i955F62495E2AF8C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GeoJason_11-1665766179078.png" alt="GeoJason_11-1665766179078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you will have to delete the broken tags and start over. It only takes a minute or two if you document your code.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 16:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1222136#M61097</guid>
      <dc:creator>GeoJason</dc:creator>
      <dc:date>2022-10-14T16:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1260636#M65835</link>
      <description>&lt;P&gt;Hey Jason,&lt;/P&gt;&lt;P&gt;Thank you for this workaround, it does seem to work on the layout page. However, it still breaks when exporting to PDF as either a single page or the whole map series. Did you ever find a more permanent workaround for this?&lt;/P&gt;&lt;P&gt;I'm still trying to figure out what changed between versions as the &amp;lt;CLR&amp;gt; tag used to work perfectly fine in arcade expressions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Wow, strike all of that - I figured it out.&lt;/P&gt;&lt;P&gt;Thanks to your post, I was able to figure out a way to set up the code so I didn't have to duplicate a tag and then manually add a &amp;lt;/CLR&amp;gt; at the end since I figured if I wrapped it all into a variable it would work. The new code is as follows:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var datafield = $feature.CABLE_IS_COMM_AND_ACCEPT;
var comcolor = "&amp;lt;CLR red='84' green='109' blue='63'&amp;gt;" + "Complete" + "&amp;lt;/CLR&amp;gt;"
var inccolor = "&amp;lt;CLR red='255' green='121' blue='0'&amp;gt;" + "Incomplete" + "&amp;lt;/CLR&amp;gt;"

Iif(datafield == 1, comcolor, inccolor)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code worked in a test dynamic element but when I applied it to our existing ones, it broke again. However, you had made mention of don't double click bounding boxes but that got me thinking if the bounding box itself was the issue. Our bounding boxes for the dynamic text elements had been 1.2 inches wide with text centered since that made everything line up correctly on our layout. What I did instead was to make them all 6 inches long and shift the X position to offset by 2.4 inches to account for the wider box.&lt;/P&gt;&lt;P&gt;This has now allowed the expression to stick while changing pages in the map series and while exporting the series to PDF - all of which had broken before with your workaround of manually adding &amp;lt;/CLR&amp;gt; at the end. Additionally, double clicking the bounding box does not break the expression - the full tag text appears when you double click but once you click off the display returns to normal.&lt;/P&gt;&lt;P&gt;Seriously, thank you for these thoughts - you really got me on the right track to solve this issue that GRmapper and I have been slamming our heads against for a while.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2023 21:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1260636#M65835</guid>
      <dc:creator>KieranClark</dc:creator>
      <dc:date>2023-02-22T21:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Arrcade - Color Text Conditionally</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1261758#M65949</link>
      <description>&lt;P&gt;Thanks all for the help and continued&amp;nbsp;support getting to the solution. The community continues to help us all do better geo&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; !!!&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2023 12:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arrcade-color-text-conditionally/m-p/1261758#M65949</guid>
      <dc:creator>GRmapper</dc:creator>
      <dc:date>2023-02-25T12:37:09Z</dc:date>
    </item>
  </channel>
</rss>

