Hi. In ArcGIS Online using the web map Attribute Expressions builder, I'm trying to pull feature xy coordinates to show in a popup. In the builder, my code successfully tests with a value; but the value in the popup and layer table is empty. I'm using a map service if that matters.
So, is this code supposed to work? Or am I doing something wrong?

Thanks.