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

Announcements

News and Announcements icon
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 Moderator
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
    676 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 Moderator 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
    676 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 Moderator 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 Moderator 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 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard