I'm trying to use Arcade to display table information in a Popup from 2 different layers in the same map.
Both layers are point features, same geospatial locations but different attribute data.
The main layer (which generates the Popup) uses a standard field list to display attributes and it works. I created an Arcade expression (using the fields template) to bring in the attributes from the secondary layer (using the Intersect arcade expression to select features from the secondary layer).
However, even though I get a second fields list the attributes are populated with:

Arcade Expression:
// Facilities - Construction Year
var fac = FeatureSetByName($map,"Facilities",['Construction_Year'])
//Get Intersecting features
var intfac = Intersects($feature, fac)
// Facilities - Structure_Number
var str = FeatureSetByName($map,"Facilities",['Structure_Number'])
//Get Intersecting features
var intstr = Intersects($feature, str)
// Facilities - Floar area
var flo = FeatureSetByName($map,"Facilities",['Floor_Area'])
//Get Intersecting features
var intflo = Intersects($feature, flo)
return {
type: 'fields',
//title: '',
//description : '',
fieldInfos: [{
fieldName: "Construction"
},
{
fieldName: "Structure"
},
{
fieldName: "Floor"
}],
attributes : {Construction : intfac, Structure : intstr, Floor : intflo}
}
Thank you for any help you can provide
Randy