I have a SharePoint Online list with a Person column. I have created a Power Apps form to enter the data because I would like to be able to set up a default value for the field (the user should be the default for that field).
To achieve this I set the DefaultSelectedItems
property of the Combo Box tied to the Person column using the following code:
If(
SharePointForm1.Mode=FormMode.New,
{
DisplayName: User().FullName,
Claims: "i:0#.f|membership|" & Lower(User().Email),
Picture: User().Image
},
Parent.Default
)
The default correctly displays the user's full name, and puts the right entry into the SharePoint list.
My issue is when the user clicks and expands the combo box, in the drop down list it shows other recent users, but it doesn't show the actual user's entry selected:
If I then select the user (by searching for their name) or any of the other users in the dropdown, then when the user subsequently clicks and expands the combo box again the selected user IS highlighted:
Is there anyway to have the combo box highlight the selected user when it is first opened?