最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sharepoint - Person combobox in Power Apps - Default selection display issues - Stack Overflow

programmeradmin1浏览0评论

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?

发布评论

评论列表(0)

  1. 暂无评论