cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Power Apps
Power Apps

Re: Clear a Pen Input

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
Highlighted
Power Apps
Power Apps

Re: Clear a Pen Input

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

Highlighted
Helper II
Helper II

Re: Clear a Pen Input

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

 

Highlighted
Resolver II
Resolver II

Re: Clear a Pen Input

you only need to add this variable

clearPenInputFlag

in Pen Input Reset property
image.png

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (3,460)