<?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: Problem with conditional visibility in Field Maps App in ArcGIS Field Maps Questions</title>
    <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1011729#M127</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/430534"&gt;@PeterMcDonnell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There a few things that could be going on. Is the field "SeaBirdsPresent" using a coded value domain with a list of options to select from?&lt;/P&gt;&lt;P&gt;If it is, then you might need to use the the "DomainName($feature, "SeaBirdsPresent")" to compare the strings instead of just comparing the values.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2020 15:16:00 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2020-12-22T15:16:00Z</dc:date>
    <item>
      <title>Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1011676#M126</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am having some difficulty with conditional visibility in the form created with the Field Maps app. &amp;nbsp;Basically I can't get it to work as I thought it would.&lt;/P&gt;&lt;P&gt;I have read the available documentation that I could find.&lt;/P&gt;&lt;P&gt;Basically if the answer to one of the first questions is no then no more of the form should be visible as the questions are irrelevant.&lt;/P&gt;&lt;P&gt;The screen shots show what I have attempted using arcade code. The expression I applied to the group was $feature.SeaBirdsPresent ! = "No". &amp;nbsp;My understanding is that if 'No' is given as the answer to that question then this group will not be visible in the form.&lt;/P&gt;&lt;P&gt;I have never used this code before and this is the first week of using the Field Maps App so apologies for any rudimentary mistakes.&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 10:50:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1011676#M126</guid>
      <dc:creator>PeterMcDonnell</dc:creator>
      <dc:date>2020-12-22T10:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1011729#M127</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/430534"&gt;@PeterMcDonnell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There a few things that could be going on. Is the field "SeaBirdsPresent" using a coded value domain with a list of options to select from?&lt;/P&gt;&lt;P&gt;If it is, then you might need to use the the "DomainName($feature, "SeaBirdsPresent")" to compare the strings instead of just comparing the values.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 15:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1011729#M127</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-12-22T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013542#M163</link>
      <description>&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;Thanks for the response and my apologies for not getting back to you sooner. &amp;nbsp;I have only returned to the office today after holidays. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try out that solution and let you know if that solves it.&lt;/P&gt;&lt;P&gt;Thanks again in taking the time to respond.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 11:58:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013542#M163</guid>
      <dc:creator>PeterMcDonnell</dc:creator>
      <dc:date>2021-01-04T11:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013596#M164</link>
      <description>&lt;P&gt;Hi Aaron,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That worked to some extent but not as I expected. I went back to the ArcGIS Pro Project I created and SeaBirds field uses a coded value domain with two options 'Yes' and 'No', perhaps this is incorrect usage.&lt;/P&gt;&lt;P&gt;Using "DomainName($feature,"SeaBirdsPresent") if one answers "No" in the Field Maps App to the Sea Birds Present Question it turns red. &amp;nbsp;You can still see and fill in the rest of the questions that follow, which I was hoping you wouldn't be able to. &amp;nbsp;However, you cannot Submit the record - Submit is greyed out.&lt;/P&gt;&lt;P&gt;For the survey in question that sea birds aren't present at a given location is important as it can mean a number of things including breeding failure or colony collapse. &amp;nbsp;So it is important that this information is recorded. &amp;nbsp;However I was hoping that the other questions would just not be available and that a record that Sea birds were not present at a given site on a given date would be submitted as a record.&lt;/P&gt;&lt;P&gt;Again, I am still learning so I may have made a mistake elsewhere.&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 15:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013596#M164</guid>
      <dc:creator>PeterMcDonnell</dc:creator>
      <dc:date>2021-01-04T15:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013600#M165</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;What you are trying to do should work. It might be easier if I can access to your feature layer and map to further assist you. If you'd like you can create a new group in AGOL, share your map and layers into that group and then invite me to that group. My account is aaron_nitro.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 15:45:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013600#M165</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-04T15:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013895#M168</link>
      <description>&lt;P&gt;Hi Aaron, thanks for all your help. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it won't be that straight forward. I &amp;nbsp;cannot share from the AGOL account where the feature layer and map are hosted. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I will go through a similar process when I get a chance and host it on my private AGOL account. &amp;nbsp;I can just make it public for you to take look at as&amp;nbsp;my own licence is for personal use so I cannot invite anyone to groups. &amp;nbsp;I probably won't get a chance until the weekend. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once again thanks for offering your time and help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 12:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013895#M168</guid>
      <dc:creator>PeterMcDonnell</dc:creator>
      <dc:date>2021-01-05T12:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013944#M171</link>
      <description>&lt;P&gt;Hello Aaron,&lt;/P&gt;&lt;P&gt;I am looking to use the conditional visibility as a selector for groups and fields. this is something that has served me well in S123 in tailoring the experience for the field workers to the task they are entering.&lt;/P&gt;&lt;P&gt;The example seems to behave opposite to what I would like to see happen. I have something that gives me the behavior that I would like, but it will only honor the first in the expression. This is new to me as well, but reading and trying to understand has taught me some.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This what I have so far, All 4 examples kind of work. In that the first part of the expression is honored and the 2nd and 3rd are ignored. I have a tasks that I would like to have share a group or field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be appreciated. Thanks&lt;/P&gt;&lt;P&gt;I had added this to a post that is marked solved. sorry for the repeat post.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 15:01:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1013944#M171</guid>
      <dc:creator>Valven</dc:creator>
      <dc:date>2021-01-05T15:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1015163#M188</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/423357"&gt;@Valven&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not exactly sure what workflow you're trying to do but here are some examples that might help you.&lt;/P&gt;&lt;P&gt;This will show the field that this expression is defined on in if the value of the "LastActivity" field is one of the values in the array.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Show this field if the value is one of these
IndexOf(["Replace Meter", "Replace Register", "Install Meter"], DomainName($feature,"LastActivity")) &amp;gt;= 0&lt;/LI-CODE&gt;&lt;P&gt;This will show the field that this expression is defined on in if the value of the "LastActivity" field is NOT one of the values in the array.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Show this field if the value is not one of these
IndexOf(["Replace Meter", "Replace Register", "Install Meter"], DomainName($feature,"LastActivity")) &amp;lt; 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The &lt;A href="https://developers.arcgis.com/arcade/function-reference/data_functions/#indexof" target="_self"&gt;IndexOf&lt;/A&gt; function can determine if a value exists in an array. Because both expressions are comparing to an integer, the result is a boolean (true or false) which should do what you want. This simplifies the expression a lot - you should be able to just paste this in and use it.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 19:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1015163#M188</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-08T19:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1015316#M191</link>
      <description>&lt;P&gt;Aaron,&lt;/P&gt;&lt;P&gt;Thank you. for expanding my knowledge of expressions. IndexOF with DomainName is exactly behavior I was looking for. Mirrors the Relevant field in Survey123 Connect for hiding groups.&lt;/P&gt;&lt;P&gt;This is just an observation with using Conditional Visibility in this scenario.&amp;nbsp; Anticipating the the field crews selecting a task then realizing they need to select a different one. After 3+ changes fieldMap dose stop working. As long as you go straight to the task and maybe one change there is no issue.&lt;/P&gt;&lt;P&gt;Thank you. Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2021 15:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1015316#M191</guid>
      <dc:creator>Valven</dc:creator>
      <dc:date>2021-01-09T15:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1018349#M253</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Aaron - I'm also having trouble getting a condition to work on a table with a domain in my Enteprise 10.8.1 - it's just our Naperville Electric dataset. I'm trying to do something super simple, it's the Animal protection attribute that I'll hide if the Orientation is underground. I've tried this (the code 61 is for the underground orientation):&amp;nbsp; &lt;STRONG&gt;DomainName($feature,"Orientation") != "61" ...&amp;nbsp;&lt;/STRONG&gt; nothing happens to hide the field no matter what I choose for the Orientation.&amp;nbsp; Feel like i'm missing something very obvious ... as I've used the same expression just fine with a simple layer in ArcGIS Online. Thanks for any advice! Sue&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:02:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1018349#M253</guid>
      <dc:creator>SueEnyedy</dc:creator>
      <dc:date>2021-01-20T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with conditional visibility in Field Maps App</title>
      <link>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1053442#M914</link>
      <description>&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;I'm having the same problem. I can't seem to figure out how this code is supposed to be. I'm trying DomainName($feature,"PoleFramingMatchGIS") == "No"&lt;/P&gt;&lt;P&gt;But that doesn't seem to do anything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you be able to help?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 21:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-field-maps-questions/problem-with-conditional-visibility-in-field-maps/m-p/1053442#M914</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-04-30T21:12:27Z</dc:date>
    </item>
  </channel>
</rss>

