Trying to calculate field in Smart Form/Field Maps with Arcade calculated expression to populate a field with the current user if another field has been populated.
var inspected = $feature.INSPECTION_STATUS;
var userInfo = GetUser();
IIF(IsEmpty(inspected) == 'False', userInfo.username, '');
Thought this should do it but entering a value into 'inspected' returns nothing.