Hello,
Not sure if this is the right board or not. It probably should be in a generic "arcade" board but I couldn't find one.
I have an Arcade pop-up expression that works perfectly in the traditional Map Viewer.

I would love for this pop-up to work in Collector or Explorer but they come up blank in both. The expressions above it work fine but they don't use IntersectLayer or FeatureSets.
Ideally, I would like to be forward thinking and have the expression work in the Beta Map Viewer and Field Maps but they don't work there either.
If anyone has any ideas please send them my way. At the end of the day, I want it to work on a mobile app experience (Collector, Explorer, Field Maps).
Here is the Arcade expression;
var intersectLayer =Intersects(FeatureSetByName($map,"Revisits"), $feature)
var cnt = Count(intersectLayer);
var visits = "";
var order = "";
if (cnt > 0){
visits = 'There has been ' + Text(cnt) + ' revists to this site:';
order = OrderBy(intersectLayer, 'visitDate DESC')
for (var f in order){
var visit_date = Text(f.visitDate, ' Y/MM/DD: ');
var visit_obs = visit_date + DomainName(f,"changeFieldStatus");
visits += TextFormatting.NewLine + visit_obs;
}
}
else {
visits = "No visits recorded.";
}
return visits;