<?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 Text is not formatting correcting in conditional statement in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/text-is-not-formatting-correcting-in-conditional/m-p/1484293#M59532</link>
    <description>&lt;P&gt;Hello, I'm trying to format the following to have the feature value to show up as a red text. However, AGOL wont recognize this (as seen in the attachment).&lt;/P&gt;&lt;P&gt;the source code is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;else if (time &amp;gt;= Date(2024, 05, 01) &amp;amp;&amp;amp; time &amp;lt; Date(2024, 06, 01))&amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//This is june-month's are zero based&lt;BR /&gt;return "&amp;lt;CLR red='255'&amp;gt;" +$feature["JUNE"] + "&amp;lt;/CLR&amp;gt;" + ' ' + TextFormatting.NewLine + ' As of: ' + time3;&lt;/P&gt;&lt;P&gt;} else if ....&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you, George&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clr_text_confusion.png" style="width: 794px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106102i006B7351B88FDB78/image-size/large?v=v2&amp;amp;px=999" role="button" title="clr_text_confusion.png" alt="clr_text_confusion.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 13:30:38 GMT</pubDate>
    <dc:creator>GeorgeJonesRIGOV</dc:creator>
    <dc:date>2024-06-04T13:30:38Z</dc:date>
    <item>
      <title>Text is not formatting correcting in conditional statement</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/text-is-not-formatting-correcting-in-conditional/m-p/1484293#M59532</link>
      <description>&lt;P&gt;Hello, I'm trying to format the following to have the feature value to show up as a red text. However, AGOL wont recognize this (as seen in the attachment).&lt;/P&gt;&lt;P&gt;the source code is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;else if (time &amp;gt;= Date(2024, 05, 01) &amp;amp;&amp;amp; time &amp;lt; Date(2024, 06, 01))&amp;nbsp; {&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//This is june-month's are zero based&lt;BR /&gt;return "&amp;lt;CLR red='255'&amp;gt;" +$feature["JUNE"] + "&amp;lt;/CLR&amp;gt;" + ' ' + TextFormatting.NewLine + ' As of: ' + time3;&lt;/P&gt;&lt;P&gt;} else if ....&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you, George&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clr_text_confusion.png" style="width: 794px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106102i006B7351B88FDB78/image-size/large?v=v2&amp;amp;px=999" role="button" title="clr_text_confusion.png" alt="clr_text_confusion.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 13:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/text-is-not-formatting-correcting-in-conditional/m-p/1484293#M59532</guid>
      <dc:creator>GeorgeJonesRIGOV</dc:creator>
      <dc:date>2024-06-04T13:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Text is not formatting correcting in conditional statement</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/text-is-not-formatting-correcting-in-conditional/m-p/1484400#M59533</link>
      <description>&lt;P&gt;Unfortunately, AGOL does not recognize the formatting tags used in ArcGIS Pro. If this for a popup, you can use an Arcade element with&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm" target="_self"&gt; html tags&lt;/A&gt; like this&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var output = `This is &amp;lt;span style="color:red"&amp;gt;red&amp;lt;/span&amp;gt; text`

return { 
	type : 'text', 
	text : output
}&lt;/LI-CODE&gt;&lt;P&gt;which gives you a popup like this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Snag_7f8dcf.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/106110i2AC596EB0A0900F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Snag_7f8dcf.png" alt="Snag_7f8dcf.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 14:45:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/text-is-not-formatting-correcting-in-conditional/m-p/1484400#M59533</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2024-06-04T14:45:01Z</dc:date>
    </item>
  </channel>
</rss>

