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.



View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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