A user is developing an InfoPath form, that is published to a SharePoint form library in SharePoint Online. There is a person picker field, set by a form load rule (on condition the field is blank) to be the current user (using the username() function). When using the form this works fine and upon the form opening the current user's name is in the person picker field. This field is a promoted field to a column called Display Name (wit the Display Name property of the person picker group of fields). However despite the field clearly being filled in, when an instance of the form is saved to SharePoint, the Display Name column is blank.
Before using this rule, the field would be manually populated and the SharePoint column would be populated as well.
I set up a test form to recreate the error, but my test was successful. The only difference was I'm a global admin, the user is only a site admin.
Does anybody have any ideas why the form load rule is appearing to work when using the form - but then doesn't promote to SharePoint?