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 / Clear people picker field
Power Apps
Answered

Clear people picker field

(0) ShareShare
ReportReport
Posted on by 146

Hello Experts!

 

I have a PowerApps that is linked to a SharePoint list. In the SP list I have a Person field which populate the name of the employees in my company. Since this is not a mandatory field, the user will be able to remove the person's name selected and leave this field in blank, however, I have not been able to achieve this.

 

Currently I have not been able to clear out the value stored in the People field. After selecting save in the PowerApp, the field is repopulated.

 

I will really appreciate any support 🙂

 

Thank you!

 

Categories:
I have the same question (0)
  • Verified answer
    SimonPiquer Profile Picture
    255 on at

    Hi,

     

    Have you tried this solution from @joshnystrom

     

    Note that it only seems to be working if the Person-field is set to "allow multiple values".

     

  • Verified answer
    joshnystrom Profile Picture
    262 on at

    Hey @SimonPiquer, thanks for calling @vsolanon's attention to that post.

     

    Unfortunately, you are correct, this approach depends on the "person" field being configured to allow multiple selections. In this other thread - https://powerusers.microsoft.com/t5/Building-Power-Apps/Clearing-out-people-picker-field/m-p/258564#... - I had tested and clarified that Date and single-Person fields were still reliant on the use of the "Formula-level error management" experimental feature, at least at that time.

     

    To be clear @vsolanon, if you enable the "Formula-level error management" experimental feature in your app's Advanced settings, save, close and relaunch editing, you should be able to clear a single-selection people field.

    PowerApps Experimental Features.PNG

     

    And, as I mentioned in that thread, your update may need to happen by way of a Patch statement rather than using SubmitForm(). More details about how are present in the referenced threads. 

     

    Good luck!

    Josh

  • vsolanon Profile Picture
    146 on at

    Hi @joshnystrom @SimonPiquer Thank you very much for the information, it works like a charm 🙂

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @joshnystrom and @SimonPiquer .

    I have a similar need that is not working. I need to patch a SharePoint single-selection person field to blank.

    Below is the portion of the patch that I had hoped would set the field to blank.

    I have turned on "Formula-level error management" (and closed and re-opened).

    Any advice please?

     'Director name':
     {
     '@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Claims:Blank(),
     Department:Blank(),
     DisplayName:Blank(),
     Email:Blank(),
     JobTitle:Blank(),
     Picture:Blank()
     },

    Thanks,

    Carla

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    To add to my query, I have also tried setting a blankperson variable, then patching that variable into the person field as shown below. Also no luck.

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

    Then,

    Patch(
     'Business plan log',
     varRecord,
     {
     'Director name': varBlankPerson
     }
    )

     

  • joshnystrom Profile Picture
    262 on at

    Hi Carla @Anonymous,

     

    Sorry for not responding to your request on this thread. Just wondering if you're still facing this challenge and whether you can provide any additional information, as I can try to assist now.

     

    Thank you,

    Josh

  • SaiTeja444 Profile Picture
    8 on at

    Create a flag to achieve it.

    Step 1: OnStart of the app create Set(ResetFlag,false);

    Step 2: In textbox (which is connected to office 365 users with multiple user), Reset property: false(default) - change it to ResetFlag

    Step 3: On your button click (Submit button) -  Onselect property: - UpdateContext({ResetFlag: !ResetFlag})

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I tried all of the solutions in this thread for a single-user field and none worked. What DID work was:

    1. Turn on Formula-Level Error Management in Experimental Features.
    2. Change the update property of the card to:
    If(
    !IsBlank(DataCardValue7.Selected),
    DataCardValue7.Selected,
    Blank()
    )

    Where DataCardValue7 is your single-person people picker.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    and what about single value people picker field? i also have issues, cannot clear it... after submitting the form the value still stays the same.

  • Rster0211 Profile Picture
    3 on at

    This is by far the simplest solution, thank you @Anonymous

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
WarrenBelz Profile Picture

WarrenBelz 493 Most Valuable Professional

#2
11manish Profile Picture

11manish 479

#3
Haque Profile Picture

Haque 328

Last 30 days Overall leaderboard