<?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: Calculate attribute based on active indoors floor filter level in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/calculate-attribute-based-on-active-indoors-floor/m-p/1638159#M65815</link>
    <description>&lt;P&gt;Hello! We are having the same issue. Did you ever figure this out?&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 19:24:02 GMT</pubDate>
    <dc:creator>czahn2</dc:creator>
    <dc:date>2025-07-31T19:24:02Z</dc:date>
    <item>
      <title>Calculate attribute based on active indoors floor filter level</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/calculate-attribute-based-on-active-indoors-floor/m-p/1527425#M61118</link>
      <description>&lt;P&gt;Has anyone been able to figure out how to auto-calculate a field based on the active floor in a floor-aware webmap?&amp;nbsp; I'm trying to grab a room number and floor number from my indoors layers, and insert them into newly created features using ArcGIS Online Web Viewer and Field Maps.&lt;/P&gt;&lt;P&gt;I've tried using this arcade script (below), but it's ignoring the floor filter and instead pulling the attribute from the first intersecting layer it finds.&amp;nbsp; I'm applying this script to a field calculation in the Web Map form for new Electrical Panels.&amp;nbsp; I also have layers for Rooms (Units) and Levels in the same webmap.&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;var roomnum = FeatureSetByName($map, "Units", ['NAME'])&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;var roomattribute= First(Intersects($feature, roomnum))&lt;/EM&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;if (!IsEmpty(roomattribute)) {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; return variable2['NAME']&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;} else {&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; return null&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;In Field Maps, it looks like inserting the floor number is default behavior, but actually &lt;U&gt;removes&lt;/U&gt; the Floor field from the form in the same webmap for users trying to edit on a desktop.&lt;/P&gt;&lt;P&gt;Would love suggestions on how to do this, if it's possible.&amp;nbsp; I've seen some other posts recommend using pre-built templates for each level, but this would only work for grabbing the floor level (and not the room number).&amp;nbsp; It's also very clunky/inefficient to preload up to 14 templates per layer, that a user now has to sort through.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 20:20:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/calculate-attribute-based-on-active-indoors-floor/m-p/1527425#M61118</guid>
      <dc:creator>ChristopherJStrong</dc:creator>
      <dc:date>2024-08-26T20:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate attribute based on active indoors floor filter level</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/calculate-attribute-based-on-active-indoors-floor/m-p/1638159#M65815</link>
      <description>&lt;P&gt;Hello! We are having the same issue. Did you ever figure this out?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 19:24:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/calculate-attribute-based-on-active-indoors-floor/m-p/1638159#M65815</guid>
      <dc:creator>czahn2</dc:creator>
      <dc:date>2025-07-31T19:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate attribute based on active indoors floor filter level</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/calculate-attribute-based-on-active-indoors-floor/m-p/1665294#M67080</link>
      <description>&lt;P&gt;We are having this issue as well and it is pretty frustrating - also the difference in functionality across the platforms is confusing as well.&amp;nbsp; Here is what I have learned so far (sharing in case I am missing something...)&lt;/P&gt;&lt;P&gt;The intersecting Arcade expression will not function properly to collect the short floor number (1, 2, etc), room number or Unit ID because the widget appears to be a pseudo filter (?).&lt;/P&gt;&lt;P&gt;If editing right in the web map Level ID can not be edited and is not auto populated.&amp;nbsp; An Arcade expression can be applied, but only before the layer is added as floor aware.&amp;nbsp;&amp;nbsp; The intersection arcade expressions ignore what the floor filter displays.&lt;/P&gt;&lt;P&gt;If editing in Field Maps, the Level ID is successfully populated when adding/updating a new feature (by default - no arcade needed) but the arcade expressions to populate room ids etc are not honored.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Experience Builder, in the floor filter settings, the floor filter can be set up to actually filter the data.&amp;nbsp; The editing template set up (in the web map) will work, but again the Level ID arcade needs to be set up BEFORE adding it as an indoors aware layer.&amp;nbsp; Also I found that if trying to use the Levels polygon to populate level ID, that will not work even with the settings.&amp;nbsp; I was able to successfully use the Units polygon for the Level ID.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice to have the settings like ExB right in the web map so that it can be configured for multiple applications.&lt;/P&gt;&lt;P&gt;Anyways just adding this as I've spent my entire day trying all these things to get staff out and collecting assets.&amp;nbsp; Was hoping for field maps, but it seems I'm stuck with ExB for now.&lt;/P&gt;&lt;P&gt;Mary&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 22:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/calculate-attribute-based-on-active-indoors-floor/m-p/1665294#M67080</guid>
      <dc:creator>GISMaryWagner</dc:creator>
      <dc:date>2025-11-12T22:21:48Z</dc:date>
    </item>
  </channel>
</rss>

