cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gregor
Level: Powered On

Set person lookup default to User() doesn't work

I have an auto-created Person lookup field in a record from sharepoint. For new records I want to default the field to the current user. This works fine by setting the default of the lookup to User().

When I access records where this field is set to other users it works correct in the display record form, but then defaults back to the current user when editing the form. This behavior is not correct.

Shouldn't the default only kick in when INITIATING A NEW RECORD? not when editing an existing record?

Kind regards,Gregor

4 REPLIES 4
TschoofBAH
Level 8

Re: Set person lookup default to User() doesn't work

I noticed similar behavior when creating defaults for data entry items and decided to make two screens, each dedicated to either add or edit. It wasn't much of a hassle since you can easily duplicate screens.

Gregor
Level: Powered On

Re: Set person lookup default to User() doesn't work

That's a good idea. I'll give this a try. Cheers.
Community Support Team
Community Support Team

Re: Set person lookup default to User() doesn't work

Hi gregor,

 

Do you need any further assistance on this?

For editing part, I think @TschoofBAH shared a good idea, creating two editing screen should make it work in your scenario.

Please reply back if you need any further assistance on this.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Gregor
Level: Powered On

Re: Set person lookup default to User() doesn't work

having separate forms for 'New' and 'Edit' is a good work around for the problem described above.

 

however, this is still not workign properly. now, the User() appears as a default when i create new records, but when i save records, i get a "field needs a value..." error. only if i manually select the dropdown to resolve the User() email it works. it's like the User() email gets filled into the dropdown, but the actual record doesn't get resolved. not until the dropdown is pressed to "lookup" the record. we look up users from azure AD.

 

the idea was to have the user field not visible and get filled with the User().

 

any ideas? thanks and kind regards,

Gregor

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (4,271)