<?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 Conditional visibility on two fields together in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058238#M1023</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I’m trying to apply conditional visibility on two fields together but not sure how to do it.&lt;BR /&gt;&lt;BR /&gt;I have a Yes/No question; if ‘Yes’ is selected, a second field with a list of options will become visible. One of the options is ‘Other’. If ‘Other’ is selected, then a ‘Specify Other’ field should become visible.&lt;/P&gt;&lt;P&gt;The problem is that when the answer is ‘No’ for the first question, the ‘Specify Other’ field is still visible.&lt;BR /&gt;How can I keep the ‘Specify Other’ field close?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 14 May 2021 22:39:41 GMT</pubDate>
    <dc:creator>AyeletGreenberg</dc:creator>
    <dc:date>2021-05-14T22:39:41Z</dc:date>
    <item>
      <title>Conditional visibility on two fields together</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058238#M1023</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I’m trying to apply conditional visibility on two fields together but not sure how to do it.&lt;BR /&gt;&lt;BR /&gt;I have a Yes/No question; if ‘Yes’ is selected, a second field with a list of options will become visible. One of the options is ‘Other’. If ‘Other’ is selected, then a ‘Specify Other’ field should become visible.&lt;/P&gt;&lt;P&gt;The problem is that when the answer is ‘No’ for the first question, the ‘Specify Other’ field is still visible.&lt;BR /&gt;How can I keep the ‘Specify Other’ field close?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 22:39:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058238#M1023</guid>
      <dc:creator>AyeletGreenberg</dc:creator>
      <dc:date>2021-05-14T22:39:41Z</dc:date>
    </item>
    <item>
      <title>Conditional visibility on two fields together</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058239#M1042</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I’m trying to apply conditional visibility on two fields together but not sure how to do it.&lt;BR /&gt;&lt;BR /&gt;I have a Yes/No question; if ‘Yes’ is selected, a second field with a list of options will become visible. One of the options is ‘Other’. If ‘Other’ is selected, then a ‘Specify Other’ field should become visible.&lt;/P&gt;&lt;P&gt;The problem is that when the answer is ‘No’ for the first question, the ‘Specify Other’ field is still visible.&lt;BR /&gt;How can I keep the ‘Specify Other’ field close?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 22:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058239#M1042</guid>
      <dc:creator>AyeletGreenberg</dc:creator>
      <dc:date>2021-05-14T22:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional visibility on two fields together</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058244#M1026</link>
      <description>&lt;P&gt;You should be able to use two expressions to do this when collecting new features. There is a demo I did for the Dev Summit available on YouTube &lt;A href="https://youtu.be/_M29_CGLQ_k?list=PLaPDDLTCmy4btgVu7omfiaw6PhKUzyk0M&amp;amp;t=1551%20" target="_self"&gt;here&lt;/A&gt; which shows this scenario. Here is the TLDR version with some sample data:&lt;/P&gt;&lt;P&gt;Say you have 3 fields for collecting information about a tree:&lt;/P&gt;&lt;P&gt;1. "has_fruit" which is a coded value domain with "Yes" and "No" options&lt;/P&gt;&lt;P&gt;2. "type_of_fruit" which is coded value domain with "Apple", "Orange", "Other"&lt;/P&gt;&lt;P&gt;3. "other_fruit_name" which is text&lt;/P&gt;&lt;P&gt;You can define an expression for "type_of_fruit" so it only shows if the tree has fruit like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DomainName($feature, "has_fruit") == "Yes"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;You can then define an expression for "other_fruit_name" so that it only shows if "type_of_fruit" is other like:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DomainName($feature, "type_of_fruit") == "Other"&lt;/LI-CODE&gt;&lt;P&gt;Since "type_of_fruit" will only appear if "has_fruit" is "Yes", then "other_fruit_name" cannot be filled in, which means "other_fruit_name" won't appear (unless there is a default value applied for "Other").&lt;/P&gt;&lt;P&gt;In the case of updating an existing feature, it's possible that there are existing values which could cause the "other_fruit_name" field to appear. This can be solved by extending the second expression to also check that "has_fruit" is "Yes":&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;DomainName($feature, "has_fruit") == "Yes" &amp;amp;&amp;amp; DomainName($feature, "type_of_fruit") == "Other"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 23:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058244#M1026</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-05-14T23:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional visibility on two fields together</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058284#M1043</link>
      <description>&lt;P&gt;Hi Ayelet,&lt;/P&gt;&lt;P&gt;This &lt;A href="https://doc.arcgis.com/en/field-maps/android/help/configure-the-form.htm#ESRI_SECTION1_8989BE629B354C48B0E43990BF46BF97" target="_blank" rel="noopener"&gt;help documentation&lt;/A&gt; explains the process of using Arcade Expressions to set up conditional formatting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 11:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058284#M1043</guid>
      <dc:creator>DavinWalker2</dc:creator>
      <dc:date>2021-05-15T11:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional visibility on two fields together</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058711#M1041</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 May 2021 20:19:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/conditional-visibility-on-two-fields-together/m-p/1058711#M1041</guid>
      <dc:creator>AyeletGreenberg</dc:creator>
      <dc:date>2021-05-17T20:19:44Z</dc:date>
    </item>
  </channel>
</rss>

