cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amallette72
Frequent Visitor

Reset Text Input /people picker

I'm new to power apps and have been building my first App. It's a Service Desk. I creating a custom form to get the layout I want. I created a people picker using a textInput box and a gallery.  When using the patch function code below. Everything works except the reset of namedUserImput.text.

Patch Formula:

Patch(Tickets, Defaults(Tickets), {Requester: NamedUserImput.Text, Status: StatusDropdown.SelectedText, Priority: PriorityDropdown.SelectedText, 'Brief Problem Description': BriefDescriptionInput.Text, Category: CategoryDropdown.SelectedText, AdditionalDetails: AdditionalDetailsInput.Text, AssignedTechnician: DefaultTech.SelectedText });
Reset(NamedUserImput);Reset(StatusDropdown);Reset(PriorityDropdown);Reset(BriefDescriptionInput);Reset(CategoryDropdown);Reset(AdditionalDetailsInput);
Navigate(MainScreen, ScreenTransition.Fade)

 

Text Input formulas:

On Select: UpdateContext({var_nameduser: ""});Reset(NamedUserImput)

Reset: true

Default: selectedperson.DisplayName 

 

Gallery Formulas:

Items: If(Len(NamedUserImput.Text)>2,
Office365Users.SearchUser({searchTerm:NamedUserImput.Text}))

Default: {}

 

I've tried several different options and have had no success. I feel like its because I need to get the gallery to show as blank  as default since the reset control sets it back to default.  If you need anymore information or clarifying details please let me know.

 

Any assistance would be appreciated. 

Thanks

Tony

2 REPLIES 2
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @amallette72 ,

you can Use like below way,

after your Patch completed. you can use like below Code -

Reset(TextInput11);Reset(ComboBox22);


ResetField.gif
Thanks,
Vijay

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

@VijayTailor 

 

I appreciate the reply , but I have tried that method several times and it doesn't seem to work. I honestly feel the solution is buried in the gallery I used for the people picker I just find the right place or formula to get it to clear itself. I would definitely be interested in any other Ideas you would have.

 

Thanks

Tony

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,376)