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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (68,155)