<?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 Minimize Field Maps form Group when all fields have a value in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172096#M3333</link>
    <description>&lt;P&gt;I have a Field Maps form with several Groups of fields. Using conditional visibility I only show users the next relevant question when they make an answer. When the user has added a value to each field in the Group, I would like it to be minimized so that the user can see the questions in the next Group with the minimum of screen scrolling.&lt;/P&gt;&lt;P&gt;Presumably this can be achieved using conditional visibility on input type: Group&lt;/P&gt;&lt;P&gt;Please can someone show me the Arcade to do this?&lt;/P&gt;</description>
    <pubDate>Mon, 09 May 2022 17:52:21 GMT</pubDate>
    <dc:creator>OliverIshmael</dc:creator>
    <dc:date>2022-05-09T17:52:21Z</dc:date>
    <item>
      <title>Minimize Field Maps form Group when all fields have a value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172096#M3333</link>
      <description>&lt;P&gt;I have a Field Maps form with several Groups of fields. Using conditional visibility I only show users the next relevant question when they make an answer. When the user has added a value to each field in the Group, I would like it to be minimized so that the user can see the questions in the next Group with the minimum of screen scrolling.&lt;/P&gt;&lt;P&gt;Presumably this can be achieved using conditional visibility on input type: Group&lt;/P&gt;&lt;P&gt;Please can someone show me the Arcade to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 17:52:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172096#M3333</guid>
      <dc:creator>OliverIshmael</dc:creator>
      <dc:date>2022-05-09T17:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Minimize Field Maps form Group when all fields have a value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172149#M3338</link>
      <description>&lt;P&gt;I think you could do this by putting a conditional expression on the group where if the values in the group are not empty, then hide the group.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HOWEVER&lt;/STRONG&gt;........&lt;/P&gt;&lt;P&gt;Although, this is a great idea and would make many workflows much easier, the way Field Maps currently works, if you populate data (or have existing data) in a field that gets "Conditionally" hidden (whether in a group or not),&amp;nbsp; all the data will be nulled out for those fields on hide.&lt;/P&gt;&lt;P&gt;So, basically, at this point, No, as it would "undo" all the previous values entered.&lt;/P&gt;&lt;P&gt;Hopefully future versions will allow us to determine if it keeps values vs. deleting them, but for now.......&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 23:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172149#M3338</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-09T23:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Minimize Field Maps form Group when all fields have a value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172318#M3348</link>
      <description>&lt;P&gt;Hey Rhett,&amp;nbsp;so I can test this out for myself, are you able to provide me with the Arcade that I need to hide the group?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 08:37:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172318#M3348</guid>
      <dc:creator>OliverIshmael</dc:creator>
      <dc:date>2022-05-10T08:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Minimize Field Maps form Group when all fields have a value</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172456#M3363</link>
      <description>&lt;P&gt;Upon further testing, it appears that if you include a field you want to hide in the expression, it will NOT get evaluated until you hit the submit the button.&amp;nbsp; So this option won't work as it keeps the group open until you hit submit.&amp;nbsp; Then, you can briefly see it clear all the values and then hide.&amp;nbsp; One would think it could evaluate based on this field once you click out of it, as it now has a value, but apparently not.&lt;/P&gt;&lt;P&gt;If the field is not included in the expression, it will evaluate it as soon as you enter any data into that field.&lt;/P&gt;&lt;P&gt;So, would probably need to move the "last" question of the group just below the group itself.&amp;nbsp; That way, when they answer it, will hide all the values above it.&lt;/P&gt;&lt;P&gt;So, if my form has "Type", "Color", "Size" as the fields I want to have in a group, I could put the first two in the group, and "Size" just below it. (or just assign the conditional statement to the first two and not have them in a group).&lt;/P&gt;&lt;P&gt;Then, apply a conditional statement to the first two that hides them if "Size" is populated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IsEmpty($feature["Size"])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remember, if the expression evaluated to "True", it will show the field(s).&lt;/P&gt;&lt;P&gt;Unfortunately, you will not be able to hide the "Size" field since it is in the expression, will only evaluate/hide it when you hit submit.&lt;/P&gt;&lt;P&gt;If you want to test will all three, just use &amp;amp;&amp;amp; (arcade for "and"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IsEmpty($feature["Size"]) &amp;amp;&amp;amp; IsEmpty($feature["Type"]) &amp;amp;&amp;amp; IsEmpty($feature["Color"])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should get you started for testing.&amp;nbsp; But remember, as per the &lt;A href="https://doc.arcgis.com/en/field-maps/ios/help/configure-the-form.htm#ESRI_SECTION1_ECDC6C18501D440AAED727A0FDBCEFDF" target="_self"&gt;documentation&lt;/A&gt;:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;H5&gt;Note:&lt;/H5&gt;&lt;P&gt;If the expression evaluates to false and the form element becomes hidden in the form, the value for the field is cleared. If a group form element becomes hidden, all values it contains are cleared.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you can see, by design, the conditional visibility is not really functional for this use.&amp;nbsp; Pretty much only relevant when there are fields that don't apply to the added/edited feature.&lt;/P&gt;&lt;P&gt;So, in your case, you may be better off having the fields hidden when empty, and just show the fields you want populated based on answer to previous field.&amp;nbsp; (and keep them visible so it doesn't delete it).&lt;/P&gt;&lt;P&gt;There has been developer discussion about having a way to toggle whether or not the field gets deleted, but have not heard anything on progress of this option.&amp;nbsp; Maybe in the future, the conditional visibility will actually be useful in real life scenarios.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 16:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/minimize-field-maps-form-group-when-all-fields/m-p/1172456#M3363</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-05-10T16:08:09Z</dc:date>
    </item>
  </channel>
</rss>

