<?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: Change Text Color Based on Value from Nested If Statement? in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778460#M5564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe another solution:&amp;nbsp;&lt;A href="https://community.esri.com/thread/229158-survey123-style-a-calculation-result"&gt;https://community.esri.com/thread/229158-survey123-style-a-calculation-result&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2020 01:15:22 GMT</pubDate>
    <dc:creator>CPoynter</dc:creator>
    <dc:date>2020-04-17T01:15:22Z</dc:date>
    <item>
      <title>Change Text Color Based on Value from Nested If Statement?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778455#M5559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I'm wondering if it's possible to change the color of text based on the value from a&amp;nbsp;nested If statement? I'm building a survey and based on a nested If statement, 3 answers are possible, which will in turn populate a Status field. If the facility is over capacity, I'd like the text to be Red, if at Capacity, Yellow, and if Below Capacity, Green.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;~Nikki Eiden, AZ Dept. of Health Services&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/488673_ChangeTextColor.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="/legacyfs/online/488674_Annotation 2020-04-14 164154.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/3263"&gt;James Tedrick&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2020 23:44:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778455#M5559</guid>
      <dc:creator>NEidenAZ</dc:creator>
      <dc:date>2020-04-14T23:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Change Text Color Based on Value from Nested If Statement?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778456#M5560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the output text from the IF-statement to HTML formatted text e.g.&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;font&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;color&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;red&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Over Capacity&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;font&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 09:11:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778456#M5560</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2020-04-15T09:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change Text Color Based on Value from Nested If Statement?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778457#M5561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the idea. I gave it a try, no luck. S123 didn't like it when I saved the excel. Have you successfully used this technique? Perhaps I got the syntax wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2020 22:11:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778457#M5561</guid>
      <dc:creator>NEidenAZ</dc:creator>
      <dc:date>2020-04-15T22:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change Text Color Based on Value from Nested If Statement?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778458#M5562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE class="line-numbers language-markup"&gt;&lt;CODE&gt;if(${CurrentCapacity}&amp;gt;${Capacity_Total}, '&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;&lt;/SPAN&gt;font&lt;/SPAN&gt; &lt;SPAN class="attr-name token"&gt;color&lt;/SPAN&gt;&lt;SPAN class="attr-value token"&gt;&lt;SPAN class="punctuation token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;red&lt;SPAN class="punctuation token"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;OverCapacity&lt;SPAN class="token tag"&gt;&lt;SPAN class="token tag"&gt;&lt;SPAN class="punctuation token"&gt;&amp;lt;/&lt;/SPAN&gt;font&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;', 'Other')&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 06:29:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778458#M5562</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2020-04-16T06:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change Text Color Based on Value from Nested If Statement?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778459#M5563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again! no luck &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Would you happen to have a screen shot of this in&amp;nbsp;a&amp;nbsp; XLSForm?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 23:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778459#M5563</guid>
      <dc:creator>NEidenAZ</dc:creator>
      <dc:date>2020-04-16T23:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change Text Color Based on Value from Nested If Statement?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778460#M5564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe another solution:&amp;nbsp;&lt;A href="https://community.esri.com/thread/229158-survey123-style-a-calculation-result"&gt;https://community.esri.com/thread/229158-survey123-style-a-calculation-result&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 01:15:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778460#M5564</guid>
      <dc:creator>CPoynter</dc:creator>
      <dc:date>2020-04-17T01:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change Text Color Based on Value from Nested If Statement?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778461#M5565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the syntax provided in a form and it worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="489037" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/489037_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;And this is the output form.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="489050" class="image-2 jive-image" height="484" src="https://community.esri.com/legacyfs/online/489050_pastedImage_1.png" width="353" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;IMG class="image-3 jive-image" height="484" src="https://community.esri.com/legacyfs/online/489051_pastedImage_1.png" width="351" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your nested IF statement is working as it should.&amp;nbsp; See what happens if you add a "name" to your Status note.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 04:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778461#M5565</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2020-04-17T04:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Change Text Color Based on Value from Nested If Statement?</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778462#M5566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Based on the answer provided by Craig, what version of Survey123 Connect are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 04:06:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/change-text-color-based-on-value-from-nested-if/m-p/778462#M5566</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2020-04-17T04:06:04Z</dc:date>
    </item>
  </channel>
</rss>

