cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Clear a Pen Input

Hello

 

How can i clear a Pen Input on an "OnSelect"-Property?  

 

Thanks in Advance

1 ACCEPTED SOLUTION

Accepted Solutions
Power Apps
Power Apps

You can set the value of the Reset property of the Pen Input control to a context variable:

PenInput1.Reset: clearPenInputFlag

And in another control (such as a button), you can toggle the value of that variable so that the value change will notify the reset property of the pen input that it needs to be updated:

Button1.OnSelect: UpdateContext({clearPenInputFlag:true});UpdateContext({clearPenInputFlag:false})

View solution in original post

3 REPLIES 3
Power Apps
Power Apps

You can set the value of the Reset property of the Pen Input control to a context variable:

PenInput1.Reset: clearPenInputFlag

And in another control (such as a button), you can toggle the value of that variable so that the value change will notify the reset property of the pen input that it needs to be updated:

Button1.OnSelect: UpdateContext({clearPenInputFlag:true});UpdateContext({clearPenInputFlag:false})

View solution in original post

Hi,

 

I've tried to do this but it keeps coming up saying "Unexpected Token" in the Reset Pen Input field. It underlines the .Reset: in the formula 

PenInput1.Reset: clearPenInputFlag

 

you only need to add this variable

clearPenInputFlag

in Pen Input Reset property
image.png

Helpful resources

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

secondImage

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,291)