I have a SharePoint 365 (change control request) list with two Person fields, Requestor and Manager Name. I can populate the Requestor field with userName() just fine, but can not populate the Manager Name field with the same formula.
I have multiple views, depending on step in the workflow. When the ManagerView is used, the form is supposed to populate the Manager Name pcPerson field on load or on button click, but doesn't. I use the same method I do on the edit view to populate the Requestor name. Even if I try to assign a text field with userName(), that works, but nothing will go into the Manager Name field programatically.
I have tried deleting and recreating the list, the field, the form, the view, the workflow. Literally, the formula works for every field but one. Can't wrap my mind around it!!