cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SteveApps
Level: Powered On

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
PowerApps Staff CarlosFigueira
PowerApps Staff

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

2 REPLIES 2
Highlighted
PowerApps Staff CarlosFigueira
PowerApps Staff

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

DavidWilson
Level: Powered On

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

 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Demo Extravaganza Championship Voting Open

Voting Ends: October 30, 2019!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 193 members 4,282 guests
Please welcome our newest community members: