cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shira
New Member

Reset

hey there,

I have an input text and I want it to be clear of text when the user click on a button.

Thanks in advance 🙂

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @mdevaney 

Great solution.

However I think is better and more straight forward to not define a variable if not really needed.Just:

Create a button with this code in the OnSelect property

Reset(<Yourtextiput>)

 

Set the default property of the TextInput to:

Blank()


Don't define global variables if not necessary.



View solution in original post

2 REPLIES 2
mdevaney
Super User
Super User

@Shira 
Create a button with this code in the OnSelect property

Set(varReset, true); Set(varReset, false);

 

Then put this code in the Default property of the Text Input

Blank()

 

Finally, put this code in the Reset property of the button

varReset

 

---
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." 

Hi @mdevaney 

Great solution.

However I think is better and more straight forward to not define a variable if not really needed.Just:

Create a button with this code in the OnSelect property

Reset(<Yourtextiput>)

 

Set the default property of the TextInput to:

Blank()


Don't define global variables if not necessary.



Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,235)