cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AmitLoh-Powerap
Kudo Kingpin
Kudo Kingpin

how to do multiple text box clearing and dropdown select to first value on clear button click

I have a clear button and I want to reset and clear multiple textbox and dropdown value(dropdown value to select first item)

How do I use below function to clear reset multiple controls?

UpdateContext(})

1 ACCEPTED SOLUTION

Accepted Solutions

hi @AmitLoh-Powerap

 

Can it be a misunderstanding?

Reset is only for TextInput, Not for TextBox.

- TextBox is the container for your data, how can you clear them?

They contain data by default (from your database).

 

Hope I get you right!

 

Have a nice day!

hpkeong

View solution in original post

5 REPLIES 5
Meneghino
Community Champion
Community Champion

@AmitLoh-Powerap I have a few posts on this, please search the forum.  Even better, please search the forum before posting questions to which the answers already exist.

v-micsh-msft
Community Support
Community Support

Hi @AmitLoh-Powerap,

 

In addition to the updatecontext, we could use the reset property of the TextBox or Dropdown control.

 

Change the Reset property of the controls that you would like to reset with the formula below:

Reset = Button.Pressed

No need to change the property of the button, when clicked, all the controls would be reset with the defult value.

Reference: Core properties in PowerApps

In addition, add a thread for reference:

Reset Search Text Box

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.

Hi, I want to clear textbox on dropdown change. I do not see this value in reset option of textbox.

hi @AmitLoh-Powerap

 

Can it be a misunderstanding?

Reset is only for TextInput, Not for TextBox.

- TextBox is the container for your data, how can you clear them?

They contain data by default (from your database).

 

Hope I get you right!

 

Have a nice day!

hpkeong

View solution in original post

Thanks hpkeong. I will try to use inputbox instead of textbox(trying to figure out one complex search filter behavior!)

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

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 (75,626)