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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to set current log...
Power Apps
Unanswered

How to set current logged user as default value of person or group field

(0) ShareShare
ReportReport
Posted on by 257

I need the logged user to be the default value of the person (Employee)field in my form anybody can support please what formula should I use in the default selected items of the employee data card:

2019-12-29 12_15_59-Working Hours Tracker (WhT) Web Application - Saved (Unpublished) - Power Apps -.png

I have the same question (0)
  • PowerBack19 Profile Picture
    679 on at

    There is a "User()" function you should be able to leverage. Here is additional information: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/show-current-user

  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @gme-eg ,

    Do you want to set the person field's defaultselected value?
    If so, please set the combo box's DefaultSelectedItems:

    If(
     Form1.Mode=FormMode.New,
     {
     DisplayName: User().FullName,
     Claims: "i:0#.f|membership|" & Lower(User().Email)
     },
     Parent.Default
    )

    12303.PNG

     

     

     

    Best regards,

  • Ghada Mehrez Profile Picture
    257 on at

    Thanks it works

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard