<?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 Color formatted calculation causing survey send errors in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563338#M60297</link>
    <description>&lt;P&gt;A while back i added some color formatting to a calculation and it worked fine then one day it stopped working. I abandoned the idea for a while but am now revisiting it. I am using this calculation:&lt;BR /&gt;&lt;BR /&gt;concat('&amp;lt;font color="', if(${pf_single} = 'F', 'red', 'black'), '"&amp;gt;', if(${pf_single} = 'P', 'P', if(${pf_single} = 'F', 'F', '-')), '&amp;lt;/font&amp;gt;')&lt;BR /&gt;&lt;BR /&gt;to color Fails in red and the rest in black. it lets me save and even publish and works in the survey on connect however when i try and send a real survey i get a database error. the idea is to have the coloured F pull through to a report. Any one had this issue before with coloring a calculated field?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 01:42:10 GMT</pubDate>
    <dc:creator>j-bromp</dc:creator>
    <dc:date>2024-11-29T01:42:10Z</dc:date>
    <item>
      <title>Color formatted calculation causing survey send errors</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563338#M60297</link>
      <description>&lt;P&gt;A while back i added some color formatting to a calculation and it worked fine then one day it stopped working. I abandoned the idea for a while but am now revisiting it. I am using this calculation:&lt;BR /&gt;&lt;BR /&gt;concat('&amp;lt;font color="', if(${pf_single} = 'F', 'red', 'black'), '"&amp;gt;', if(${pf_single} = 'P', 'P', if(${pf_single} = 'F', 'F', '-')), '&amp;lt;/font&amp;gt;')&lt;BR /&gt;&lt;BR /&gt;to color Fails in red and the rest in black. it lets me save and even publish and works in the survey on connect however when i try and send a real survey i get a database error. the idea is to have the coloured F pull through to a report. Any one had this issue before with coloring a calculated field?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 01:42:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563338#M60297</guid>
      <dc:creator>j-bromp</dc:creator>
      <dc:date>2024-11-29T01:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Color formatted calculation causing survey send errors</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563451#M60303</link>
      <description>&lt;P&gt;You have a lot going on there. For starters, I'd not nest IF() statements inside a concat(). Make them their own calculate fields and reference &lt;EM&gt;those.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 17:57:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563451#M60303</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-11-29T17:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Color formatted calculation causing survey send errors</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563692#M60317</link>
      <description>&lt;P&gt;If you do this you will forever have html in your data and it will drive you nuts.&amp;nbsp; Do not recommend.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would try adding a second value that is just the color and hide it in the form then use in the report.&amp;nbsp; Not sure if reports can do color?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 15:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563692#M60317</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2024-12-02T15:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Color formatted calculation causing survey send errors</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563839#M60323</link>
      <description>&lt;P&gt;ok thanks, i abandoned the colour again. will come back to it&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 20:49:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/color-formatted-calculation-causing-survey-send/m-p/1563839#M60323</guid>
      <dc:creator>j-bromp</dc:creator>
      <dc:date>2024-12-02T20:49:42Z</dc:date>
    </item>
  </channel>
</rss>

