Showing results for 
Search instead for 
Did you mean: 
Resolver II
Resolver II

Bug: Clear the penInput Control when Screen loads in OnVisible

It's been reported here multiple times but can we please get this fixed.


OnVisible sets a variable to true that is attached the penInput Reset property. This should clear the image from the penInput control when the form becomes, but it does not. Yes there are not so obvious workarounds, but this should work as expected.



Continued Contributor
Continued Contributor

Hi @mike528 ! Could you please show the formula for the onVisible and the Reset Property of Pen Input control?


And what I am understanding is that you want to reset the control every time it is visible, is that correct? You could try Reset(PenInput) on the onVisible property?


Mark this post as a solution, or kudo it if you found it be helpful. You can choose more than multiple answers as solutions, including your own answer. 🙂

In the OnVisible, I have
UpdateContext({locClearImage: true})


then on the penInput, the Reset expression is simply locClearImage


This works well if the code for setting locClearImage to true is in the OnSelect of a button. But does not work when in the OnVisible. Also, Reset(penInput) does not change the outcome ... the previous image is still there.



Continued Contributor
Continued Contributor

After trying my solution, your solution, and other people's solution, I willing to say it must be a bug. I have also tried adding a button with Reset(PenInput) on onSelect Property and then Select(Button) on screen onVisible that hasn't worked either. Maybe you can submit an idea here:


I am sorry you have to go through this!

Helpful resources

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,220)