web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Using User() as a defa...
Power Apps
Unanswered

Using User() as a default value in a form

(0) ShareShare
ReportReport
Posted on by 147

I know there are threads on this issue, but it doesn't seem to work for me, so my issue is as follows:

 

When I make an edit form, I want the user to be selected by default in one of the drop-down menus. I expect entering User() in the the Default-property of either the Datacard or the DataCardValue, but neither helps. This seems to have worked for others however.

 

I also tried some of the more elaborate codes, but yet no result. I don't get an error either, there is just nothing showing up. I know I can retrieve the information, as I am using information from it on fields such as labels.

 

Does anyone know what's going on here?

Categories:
I have the same question (0)
  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Hello @Daniël 

    In that case as a workaroung you can do in the defaultselecteditems property of your dropdown something like

    LookUp(Choices([@YOUR_SHAREPOINT_LIST_NAME].NAME_OF_YOUR_COLUMN),User().Email = Email)

    This should do the trick.

  • Daniël Profile Picture
    147 on at

    Hi Alaa, thank you for your reply. However, it doesn't seem to change anything:

    Danil_0-1691571306700.png

    No error, just an empty field. Do you have any idea why that would be?

  • madlad Profile Picture
    2,637 Moderator on at

    What are the items of the dropdown?

    If the item you're trying to specify as the default doesn't appear in the dropdown's items, it will be blank.

    Make sure that the items for the gallery are both of the person type, and also that the user in question would be in these.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 84

#2
WarrenBelz Profile Picture

WarrenBelz 79 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 40 Super User 2026 Season 1

Last 30 days Overall leaderboard