<?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 Layer display by Map visibility/query with arcade in Popup in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/conditional-layer-display-by-map-visibility-query/m-p/1051527#M39708</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have two layers on my map:&lt;/P&gt;&lt;P&gt;1) &lt;U&gt;Projects&lt;/U&gt;&lt;/P&gt;&lt;P&gt;2) &lt;U&gt;Buildings&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Every time a &lt;U&gt;Project&lt;/U&gt; is created related to a specific building, the new "&lt;EM&gt;project name&lt;/EM&gt;" field is added to the &lt;U&gt;Building&lt;/U&gt;'s pop-up. (like a list, when you click on the building, you see a list of all&amp;nbsp;&lt;EM&gt;project names&lt;/EM&gt; that has been created for that building)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Building'&lt;/U&gt;s pop-up is just a list that keeps increasing as new P&lt;U&gt;rojects&lt;/U&gt; get created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if that's possible to create a conditional statement inside the pop-up where only the &lt;U&gt;Projects&amp;nbsp;&lt;/U&gt;&amp;nbsp;visible on the map are seen inside &lt;U&gt;Building&lt;/U&gt;'s pop-up. In other words, if I turn off the &lt;U&gt;Projects&lt;/U&gt; layer on the map, and then click on any building, the pop-up would show up empty because the &lt;U&gt;Project&lt;/U&gt; layer is turned off.&lt;/P&gt;&lt;P&gt;My use case would be in the Operations Dashboard, I have a widget that queries the &lt;U&gt;Project&lt;/U&gt; by type. That query creates an action on the layer on the map querying only the &lt;U&gt;Projects&lt;/U&gt; with "cleaning type" as an example. So when I go click on the &lt;U&gt;Building&lt;/U&gt;, the list on the &lt;U&gt;Building's&lt;/U&gt; pop-up would only show &lt;EM&gt;project names&lt;/EM&gt; that has "cleaning" as project type. If I change my query on the dashboard widget for "restoration type", the building's pop-up would show a list with only project names which has "restoration" as type.&lt;/P&gt;&lt;P&gt;Does anybody know if that's possible? (Conditioning with arcade in pop-up menu whether the layer is visible on the map)&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 21:47:17 GMT</pubDate>
    <dc:creator>RichfieldMN</dc:creator>
    <dc:date>2021-04-26T21:47:17Z</dc:date>
    <item>
      <title>Conditional Layer display by Map visibility/query with arcade in Popup</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/conditional-layer-display-by-map-visibility-query/m-p/1051527#M39708</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have two layers on my map:&lt;/P&gt;&lt;P&gt;1) &lt;U&gt;Projects&lt;/U&gt;&lt;/P&gt;&lt;P&gt;2) &lt;U&gt;Buildings&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Every time a &lt;U&gt;Project&lt;/U&gt; is created related to a specific building, the new "&lt;EM&gt;project name&lt;/EM&gt;" field is added to the &lt;U&gt;Building&lt;/U&gt;'s pop-up. (like a list, when you click on the building, you see a list of all&amp;nbsp;&lt;EM&gt;project names&lt;/EM&gt; that has been created for that building)&lt;/P&gt;&lt;P&gt;&lt;U&gt;Building'&lt;/U&gt;s pop-up is just a list that keeps increasing as new P&lt;U&gt;rojects&lt;/U&gt; get created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to know if that's possible to create a conditional statement inside the pop-up where only the &lt;U&gt;Projects&amp;nbsp;&lt;/U&gt;&amp;nbsp;visible on the map are seen inside &lt;U&gt;Building&lt;/U&gt;'s pop-up. In other words, if I turn off the &lt;U&gt;Projects&lt;/U&gt; layer on the map, and then click on any building, the pop-up would show up empty because the &lt;U&gt;Project&lt;/U&gt; layer is turned off.&lt;/P&gt;&lt;P&gt;My use case would be in the Operations Dashboard, I have a widget that queries the &lt;U&gt;Project&lt;/U&gt; by type. That query creates an action on the layer on the map querying only the &lt;U&gt;Projects&lt;/U&gt; with "cleaning type" as an example. So when I go click on the &lt;U&gt;Building&lt;/U&gt;, the list on the &lt;U&gt;Building's&lt;/U&gt; pop-up would only show &lt;EM&gt;project names&lt;/EM&gt; that has "cleaning" as project type. If I change my query on the dashboard widget for "restoration type", the building's pop-up would show a list with only project names which has "restoration" as type.&lt;/P&gt;&lt;P&gt;Does anybody know if that's possible? (Conditioning with arcade in pop-up menu whether the layer is visible on the map)&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 21:47:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/conditional-layer-display-by-map-visibility-query/m-p/1051527#M39708</guid>
      <dc:creator>RichfieldMN</dc:creator>
      <dc:date>2021-04-26T21:47:17Z</dc:date>
    </item>
  </channel>
</rss>

