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 III
Super User III

@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
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

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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