Showing results for 
Search instead for 
Did you mean: 
Super User
Super User


Hi everyone...


Do you have any idea how can I capture a Cancel event from BarCodeScanner ? Actually I want to know without using a button or any other control if the user scanned a QR code or not(means he pressed the cancel button from QRCodeScanner screen), after the camera is closed .


Thanks !

Community Support
Community Support

Hi @gabibalaban ,


Did you mean that you want to capture the barcode even after  the user click on Cancel in camera? If so, please set formula you need in the OnScan property of the barcode control. This property define how an app responds when a barcode is successfully scanned.




Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I think my request was a bit confusing ... I want to know when the user exits the camera mode by pressing Cancel (without scanning a bar code)

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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