I have ArcIndoors and all my floor data (using the Indoors schema). I want to spin up web maps using smart forms, to where when a person places say a point in the Fire Extinguisher layer, it will auto populate in the extinguisher attributes for the LEVEL_ID, Building Number/Name, Room Number, grabbing said attributes from the Facilities/Levels/Units Indoor layers. This is the Arcade expression I used, but it seemingly isn't taking into account the floor picker. Any suggestions?
function getContainingID(Levels, LEVEL_ID) {
var fs = FeatureSetByName($map, Levels, [LEVEL_ID, "SHAPE@"]);
var hit = First(
Intersects(fs, Geometry($feature))
);
return IIF(
IsEmpty(hit),
null,
hit[LEVEL_ID]
);
}