Ok and this is using Enterprise or AGO? I am using AGO. This is my code:
GetUser(FeatureSetByName($map,"NameOfLayerInForm")).fullname
and I am still seeing the red error when disconnected.
22.1.2 version as well. This is really frustrating. It works connected and then as soon as I disconnect it stops working and then if I reconnect it still will not work until I restart the app and reload the map.