AnsweredAssumed Answered

Help: Pop-up with custom expression reports nothing but expression test gives result

Question asked by on Mar 16, 2020
Latest reply on Mar 17, 2020 by xander_bakker

I'm working with a custom arcade expression to show multiple layers in a single pop-up. However, I've run into a snag that is only showing up with one of the hosted feature layers I'm working with (the exact same code, with different fields, works in the other hosted layer). The code is simple and provided below


var featSet = FeatureSetByName($datastore,"CommercialSaleRep", ['Name','PhoneNumber']);
var featI = Intersects(featSet, $feature);
for (var f in featI){
    return f.PhoneNumber


When I test the expression, it provides the expected result. However, in the pop-up there is nothing.#


I've tried clearing the pop-up of everything but the expression and using a Display: A list of field attributes and none of those results in a working expression.


Do visibility ranges have any impact on what data can be drawn upon with a popup expression?
What else can I try checking?#