<?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: Survey123 Custom Text color based on calculation in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137157#M39992</link>
    <description>&lt;P&gt;You put the field names in quotes for some reason that makes then strings.&amp;nbsp; I think you want.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if((${building_substructure_weighted} * 5 * 0.01) &amp;lt; 3,'&amp;lt;font color="red"&amp;gt;' + string({building_average_condition}) + '&amp;lt;/font&amp;gt;',string(${building_average_condition}))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would not use this as the value as the html will be in the data then but up to you.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jan 2022 22:28:15 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2022-01-25T22:28:15Z</dc:date>
    <item>
      <title>Survey123 Custom Text color based on calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137036#M39982</link>
      <description>&lt;P&gt;I am trying to change the color of a calculated number based on the value that is calculated. I have a series of questions that take in values and give a unique calculation value. I would like that new value to change color based on the numeric value. (Text turns red if number is below 3.0). I cant seem to get a new if statement to work in the "calculation column" of my survey.&lt;/P&gt;&lt;P&gt;Any help would be awesome!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 19:06:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137036#M39982</guid>
      <dc:creator>Michael_VanHatten</dc:creator>
      <dc:date>2022-01-25T19:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Custom Text color based on calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137039#M39983</link>
      <description>&lt;P&gt;I do this but use emojis.&amp;nbsp; This how to post may help you get it.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-documents/how-to-simulate-instant-data-checking-using-emojis/ta-p/916725" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-documents/how-to-simulate-instant-data-checking-using-emojis/ta-p/916725&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You basically do the calc in a field then use that field in the label column.&lt;/P&gt;&lt;P&gt;You did not post a form or the if statement so pretty hard to trouble shoot it.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 19:13:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137039#M39983</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-25T19:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Custom Text color based on calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137050#M39985</link>
      <description>&lt;P&gt;Thanks Doug,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my calculation code I know the numeric calculation works I just need the text color to change if the value is less than 3.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(${building_substructure_weighted} * 5 * 0.01), if((${building_average_condition} &amp;lt; "3.0"),"&amp;amp;#9989")&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 19:30:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137050#M39985</guid>
      <dc:creator>Michael_VanHatten</dc:creator>
      <dc:date>2022-01-25T19:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Custom Text color based on calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137076#M39987</link>
      <description>&lt;P&gt;Not sure what you posted that is not a valid statement.&amp;nbsp; Unless this is two lines?&amp;nbsp; Your if is unbalanced.&amp;nbsp; Plus you are using a &amp;gt; on a string which is not going to work.&lt;/P&gt;&lt;P&gt;I think you are saying you want the number 3 to change color.&amp;nbsp; You can but I would not because the the html will be in the value.&amp;nbsp; Unless you have a second value to store.&lt;/P&gt;&lt;P&gt;I would use the emojis really.&amp;nbsp; But you can do text also.&amp;nbsp; Few diff ways to do it here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_2-1643141129371.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32282iCC48F0E997518CC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_2-1643141129371.png" alt="DougBrowning_2-1643141129371.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="DougBrowning_3-1643141150913.png" style="width: 762px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32283i6EDF26C9D5A1262C/image-dimensions/762x80?v=v2" width="762" height="80" role="button" title="DougBrowning_3-1643141150913.png" alt="DougBrowning_3-1643141150913.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 20:07:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137076#M39987</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-25T20:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Custom Text color based on calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137114#M39988</link>
      <description>&lt;P&gt;Hi Doug, it looks like you got the "please check value" text to change to red. If there no way I can have two calculations for one row? I would like to calculate my value and if it is below 3.0 change it red. Is it not possible to use multiple calculation functions?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 21:27:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137114#M39988</guid>
      <dc:creator>Michael_VanHatten</dc:creator>
      <dc:date>2022-01-25T21:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Custom Text color based on calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137120#M39989</link>
      <description>&lt;P&gt;Yes you can.&amp;nbsp; Just change the testint field in my sample with you calc.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 21:34:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137120#M39989</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-25T21:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Custom Text color based on calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137148#M39990</link>
      <description>&lt;P&gt;Ok I included your code but I do not get the calculated value to show up. I removed your labels and tired to call the value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if((${building_substructure_weighted} * 5 * 0.01) &amp;lt; 3,'&amp;lt;font color="red"&amp;gt;{building_average_condition}&amp;lt;/font&amp;gt;',"${building_average_condition}")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;building_average_condition is the name of the row I want to use&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 22:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137148#M39990</guid>
      <dc:creator>Michael_VanHatten</dc:creator>
      <dc:date>2022-01-25T22:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Survey123 Custom Text color based on calculation</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137157#M39992</link>
      <description>&lt;P&gt;You put the field names in quotes for some reason that makes then strings.&amp;nbsp; I think you want.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if((${building_substructure_weighted} * 5 * 0.01) &amp;lt; 3,'&amp;lt;font color="red"&amp;gt;' + string({building_average_condition}) + '&amp;lt;/font&amp;gt;',string(${building_average_condition}))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would not use this as the value as the html will be in the data then but up to you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jan 2022 22:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/survey123-custom-text-color-based-on-calculation/m-p/1137157#M39992</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-01-25T22:28:15Z</dc:date>
    </item>
  </channel>
</rss>

