<?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>idea Dynamic group background color in ArcGIS Survey123 Ideas</title>
    <link>https://community.esri.com/t5/arcgis-survey123-ideas/dynamic-group-background-color/idi-p/924615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a background color variable for groups. This variable could be dynamic, allowing you to change the background color of a group based on a response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, a survey on the compliance of building permits.&lt;BR /&gt;- If the group dedicated to the limits is in conformity then its background color becomes green&lt;BR /&gt;- If the group dedicated to buildings is non-compliant then its background color becomes red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today, we can only use dynamic labels to get a quick overview of a group. The background color would improve the visibility of the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/452850_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/452849_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jul 2019 09:34:04 GMT</pubDate>
    <dc:creator>hgaignard</dc:creator>
    <dc:date>2019-07-11T09:34:04Z</dc:date>
    <item>
      <title>Dynamic group background color</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/dynamic-group-background-color/idi-p/924615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add a background color variable for groups. This variable could be dynamic, allowing you to change the background color of a group based on a response&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, a survey on the compliance of building permits.&lt;BR /&gt;- If the group dedicated to the limits is in conformity then its background color becomes green&lt;BR /&gt;- If the group dedicated to buildings is non-compliant then its background color becomes red&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today, we can only use dynamic labels to get a quick overview of a group. The background color would improve the visibility of the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/452850_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/452849_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/dynamic-group-background-color/idi-p/924615</guid>
      <dc:creator>hgaignard</dc:creator>
      <dc:date>2019-07-11T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic group background color</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/dynamic-group-background-color/idc-p/924616#M58</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been awhile since this got suggested but I haven't seen anyone address this so here goes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can accomplish this functionality using the backgroundColor property in the body::esri:style column of the group and a calculate field. First create a calculate field that handles the logic you need and returns the appropriate color value i.e. a field named background_calculated with the calculate field equal to:&amp;nbsp; if(${record_type}="valid", "blue","red"). Then set the backgroundColor property in the&amp;nbsp;&lt;SPAN&gt;body::esri:style column&lt;/SPAN&gt;&amp;nbsp;of the group equal to that field: backgroundColor=${background_calculated}. That gives you a dynamic background for the whole group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For whatever reason it doesn't seem to work if you put the logic directly in the&amp;nbsp;&lt;SPAN&gt;body::esri:style column which is why you need a separate calculate field.&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2020 16:35:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/dynamic-group-background-color/idc-p/924616#M58</guid>
      <dc:creator>AndyMcClary</dc:creator>
      <dc:date>2020-10-13T16:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic group background color</title>
      <link>https://community.esri.com/t5/arcgis-survey123-ideas/dynamic-group-background-color/idc-p/1412245#M2887</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It's something interesting and very useful.&lt;BR /&gt;I share my file.&lt;/P&gt;&lt;P&gt;I wanted to add a file with my code, can't I?&lt;/P&gt;&lt;P&gt;Hugs&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 13:23:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-ideas/dynamic-group-background-color/idc-p/1412245#M2887</guid>
      <dc:creator>João_CarlosPinto_Fernandes</dc:creator>
      <dc:date>2024-04-19T13:23:42Z</dc:date>
    </item>
  </channel>
</rss>

