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 / How to populate Barcod...
Power Apps
Answered

How to populate Barcode Scanner value in text input box

(0) ShareShare
ReportReport
Posted on by 819 Super User 2025 Season 2
Good Morning!
 
I created a Unit VIN text column, and now I want to capture the value from a barcode scanner and store it in this column. How can I collect and save the scanned value to the column?
 
 
OnScan Property (for Barcode Scanner)
 
UpdateContext({scannedBarcode: BarcodeScanner.Value})
 
And I made a text column to collect value and 
 
Default Property (for Text Input)
 
scannedBarcode
 
 
 
 
 
Also, I tried the formula in text property - 
 
First(ScannerControlName.Barcodes).Value
 
My ScannerControlName is SCANVIN
 
 
How can I populate barcode scanner value.
I have the same question (0)
  • Verified answer
    55552 Profile Picture
    674 on at
    Try using the newer Barcode Reader control instead of the old Barcode Scanner control.  In the barcode reader control, no need to put anything in the OnScan property.
     
    Then in the text control, use: 
    First(ScannerControlName.Barcodes).Value
     
    Where ScannerControlName is simply the name of your Barcode Reader control.
     
    Are you using a barcode or QR Code? In the Barcode Reader control properties, be sure to select the type of code you are using.
     
    Also, not sure if this matters, but I have typically used label controls instead of text input boxes to display the results.
  • MTNK Profile Picture
    819 Super User 2025 Season 2 on at
     
    Thank you for your response. However, it didn’t work as expected and didn’t display any value. Could you please suggest how we can make it work?
  • 55552 Profile Picture
    674 on at
    @Meenu Turan  
    Are you using a barcode or QR Code? In the Barcode Reader control properties, be sure to select the type of code you are using.
     
    Also, not sure if this matters, but I have typically used label controls instead of text input boxes to display the results.
     
    Any other details you can provide would be helpful. This should be a relatively simple fix.
  • MTNK Profile Picture
    819 Super User 2025 Season 2 on at
    @55552 I appreciate your help!

    I have an app with 14 columns used to collect information with power app. Later, the production manager realized we need a QR code scanner, so I want to populate the Text Input field with the scanned QR code value. However, I'm not sure where the value from the QR code scan is being saved.

    I removed the old Barcode Scanner (QR Code) and replaced it with a new one.

    I've attached an image for reference.

  • MTNK Profile Picture
    819 Super User 2025 Season 2 on at
    @55552  Thanks you for your help!
     
     
    It worked for me. However the value is not collecting to the Sharepoint list(as the app is supposed to collect data and save it in List.) 
    Can you please help me with the same.
     
     
     
     
  • MTNK Profile Picture
    819 Super User 2025 Season 2 on at
    I'm so happy it worked! The value is now correctly populating in my list. Thanks so much for your help!

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 483 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 242 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 200 Super User 2025 Season 2

Last 30 days Overall leaderboard