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 / Clear People picker fi...
Power Apps
Answered

Clear People picker field in PowerApps

(0) ShareShare
ReportReport
Posted on by 11

I am tried many ways to clear the filed in SharePoint list using PowerApps and make it null on the record.
but unfortunately, I could not do that.

## first way I tried:

 

 

 Set(
 BlankPerson,
 Table(
 {
 Claims: Blank(),
 DisplayName: Blank(),
 Email: Blank(),
 Department: Blank(),
 Picture: Blank(),
 JobTitle: Blank()
 }
 )
 );

 Patch(
 'InvoicePaymentRequests',
 {ID: InvoicesListGallery.Selected.ID},
 {SecondApprover: BlankPerson()}
 );

 

 

**I am getting mismatch data type (Record - Table) **

## Second way I tried

 

 

Patch(
 'InvoicePaymentRequests',
 {ID: InvoicesListGallery.Selected.ID},
 {
 SecondApprover: {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Claims: Blank(),
 DisplayName: Blank(),
 Email: Blank(),
 Department: Blank(),
 Picture: Blank(),
 JobTitle: Blank()
 }
 }
 );
 Refresh(InvoicePaymentRequests)

 

 



**this one it is running but will not clear the field value on the list.**

## Third way

 

 

 
 Patch(
 'InvoicePaymentRequests',
 {ID: InvoicesListGallery.Selected.ID},
 {
 SecondApprover: Blank()
 }
 );

 

 



**also did not work**

any suggestions?

thanks and best regards

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

    Is the people picker field in form as a combo box?

    If yes you don't need to do anything code wise. Just enable Formula level error management from advance settings in your PowerApps. Save and publish the app. and done.

  • Yajjoj Profile Picture
    11 on at

    Yes it is combo box, but still not working even after enabling the Formula level error management 😞

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Right now it is the only way to make person field blank. It works for me. 

    You can also try this.

    Go to the Datacard of that people picker field. Select the datacard not the combo box. Go to it's update property.

    Write:

    If(Isblank(datacardname),Blank(),datacardname.selected)

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Reset-a-ComboBox-people-picker-to-blank/m-p/917573#M290952

     

    Checkout this. You must be missing something. There is no need to write complicated patch code to write blank value. 

  • Yajjoj Profile Picture
    11 on at

    I add it to the datacard as below on update property

    Spoiler (Highlight to read)
    If(Isblank(DataCardValue42),Blank(),DataCardValue42.selected)


    and it did not work, I even make it Blank() only and still not owrking.
    am I missing somthing ?

    If(Isblank(DataCardValue42),Blank(),DataCardValue42.selected)and it did not work, I even make it Blank() only and still not owrking.am I missing somthing ?

     

  • Yajjoj Profile Picture
    11 on at

    I add it to the datacard as below on update property: 

    Spoiler (Highlight to read)
    If(Isblank(DataCardValue42),Blank(),DataCardValue42.selected)


    and it did not work, I even make it Blank() only and still not owrking.
    am I missing somthing ?

    If(Isblank(DataCardValue42),Blank(),DataCardValue42.selected)and it did not work, I even make it Blank() only and still not owrking.am I missing somthing ?

     

  • Verified answer
    zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Checkout the link i shared before. So many people face the same issue. The only solution right now is enable formula level error management. And save the app. And reload. 

    I am sorry i couldn't be more helpful.

  • stephen_dapt Profile Picture
    2 on at

    I set the default property of the card to {}. When I submit the form it clears the user from the field.

    stephen_dapt_0-1715510181078.png and then on form submit 

    stephen_dapt_1-1715510202745.png

     

     

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard