This post is a continuation of this one.
My problem is setting the default value of a People control on a form. For example, I type in my email in the Default value setting of the People control in question. When I preview the form, sure enough my user identity populates that control as the default.
However, outside of a preview context—when I open the form in response to its task—there is no default value prepopulating the control.
This problem holds true for:
Check how the Common:Current User is formatted and use it for setting the Default value; use a calculated field with Common:Current User. Use that formatting in the default value of your people picker. This I tested and seems to work for me.
NB: in my case it consisted of the windows claims token, the domain and the (short) user name.
Thank you for the reply @jpmhuls. Unfortunately, my problem persists.
Common:Current User is formatted as a login ID; as stated in my original post, a login ID set as the default value may show up in the control when using the form preview, but not when answering the form itself.
At this point, I suspect there is a setting in the form (or outside) that is affecting my People control.
Ok, so it seems to be extracted from the User Info List.... How did you set the default value when using the user's display name, with or without (double) quotes? I tried in a test form without the qoutes and that just worked like a charm; when putting inside double quotes I get an error page.
Have you tried the same in another site collection?
@jpmhuls When using a display name sans quotes, my problem persists.
When including quotes, the form preview does not become prepopulated, so that type of formatting is outright incorrect.
I am not of a high enough administrative level to check site collection settings.
When I Connect the People control to a field that already has information (for example, Assigned To), it becomes prepopulated with that information (i.e. the assignee). In this situation, any Default Value gets overwritten.
For more context about my problem, when I Connect the control to a field with no information, what appears to be happening is the Default Value I set gets overwritten once again. Overwritten by nothing.