Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Clear Text input which has Default earlier



I have a condition whereby my Text Input (lets say the name is TextInput1) having Default : Gallery1.Selected.'Worker name', then in some event, I need to clear that text. So I created a button right beside that Textinput1 to clear that text inside.


Usually I'm using Reset(TextInput1) , but I realize reset is just to give the default value back.


How to clear the text ?



Resolver I
Resolver I

Hi Axal,


If i understand correctly, try this approach -


1. Create a boolean variable on screen visible. Set(Clear, false)

2. Set Default property of textbox TextInput1 to If(Clear, "", Gallery1.Selected.'Worker name')

3. Now event when you want to clear the text use this code UpdateContext({Clear: true})

4. You also need to update the Clear variable to false on gallery select event, so that you can have the new value.


Hope this helps.


Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,473)