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 / QR Code , Split inform...
Power Apps
Unanswered

QR Code , Split information into different text boxes

(0) ShareShare
ReportReport
Posted on by 24

Good Afternoon!

 

I need some help with barcode scanning. I currently have a barcode scanner which is super simple. 

 

BarcodeReader2 has no OnScan value 

Label1. Text=Concat(BarcodeReader2.Barcodes, Value) 

 

A QR code is read and client ID is added to Label1. 

 

Is there a way I can put more information into the QR code such as ID and Surname? 1123-Smith or 1123,Smith (unsure what would be correct), and have Label1 populate with ID and Label2 with Surname?

 

Thanks for your help 😀 

 

 

Categories:
I have the same question (0)
  • wlt_2022 Profile Picture
    24 on at

    Just tried the following and still giving issues

     

    BarcodeReader2.OnScan = UpdateContext({ ScannedData: BarcodeReader2.Barcodes });

    Label1.Text = First(Split(ScannedData, ","));

    Label2.Text = Last(Split(ScannedData, ",")); 

     

    Both Labels throwing errors.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @wlt_2022 ,

     

    Please try:

     

    Label1.Text = First(Split(ScannedData, ",")).Value

    Label2.Text = Last(Split(ScannedData, ",")).Value

     

    Best Regards,

    Bof

     

  • wlt_2022 Profile Picture
    24 on at

    @v-bofeng-msft Thank for your reply 😀

     

    I tried your suggestion and also ?.Value and it's still not working, I must be doing something wrong for the code not to be working correctly. 

  • wlt_2022 Profile Picture
    24 on at

    Trying the following with kind of works but its not splitting the data.

     

    BarcodeReader2.OnScan =

    Set(varAllCodes, BarcodeReader2.Barcodes);

    Set(varCode1, First(varAllCodes));

    Set(varCode2, Last(varAllCodes))

    Label1.Text = varCode1

    Label2.Text = varCode2

     

    When I scan the QR code with either a - or , both labels return the same result. 

     

    Anything I can add to my code to split the data? 

     

    Thank you All.

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard