web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Resetting Barcode Read...
Power Apps
Answered

Resetting Barcode Reader Control

(3) ShareShare
ReportReport
Posted on by 51
I building an app for product inspection and in my inspection form I have a datacard for Part Number and I wanted to use BarcodeReader control to scan the barcode and then display the scanned value in the Part number field. 
 
Therefore I am using the below formula in the default property of the the partnumber datacardvalue (Text Input Control)
First(BarcodeReader1.Barcodes).Value
 
However, I want to display the part number field empty in the new form but now it displays the previously scanned part number. 
How can I reset my Barcodereader control?
 
 
  
Categories:
I have the same question (0)
  • Verified answer
    Daniel Bocklandt Profile Picture
    5,117 Super User 2026 Season 1 on at
    Hey, 
     
    So i would not display the value directly from the Barcode scanner but use an ectra step. Save the value in a variable. 

    You have the property "OnScan", There you can enter this Formula: 
    Set(varBarcode,First(BarcodeReader1.Barcodes).Value)
    //or
    UpdateContext({varBarcode:First(BarcodeReader1.Barcodes).Value})
     
    You can choose if you never leave the screen when filling out the form you can use UpdateContext otherwise use the Set formula. 
    UpdateContext is cleare when leaving the screen. 
     
    If you use the set function just add after sending or canceling the form this: 
    Set(varBarcode,Blank())
     

    If this solved your problem, please mark it as Solved to help others find the solution faster.
    If you found it helpful, consider giving it a Like to support each other in this community!

    Thanks, and happy building!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 321 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 289 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 200 Super User 2026 Season 1

Last 30 days Overall leaderboard