I have a simple attribute rule that works in Pro but fails in the web map/app. All of my other rules work that do not have geometry functions in both. Is there something I am missing? In the web app and Survey123 I get a "missing geometry" error which tells me its not seeing the 'fc' layer.
var fc = FeatureSetByName($datastore,'SUDOECMS.DBO.LEGAL', ['*'], true);
var qtr = FIRST(within($feature, fc))
if ( !IsEmpty(qtr)) {
return qtr.FullDesc
}
else {
return $feature.legaldesc
}