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 / Barcode scanner power ...
Power Apps
Answered

Barcode scanner power apps

(0) ShareShare
ReportReport
Posted on by 82

Hello,

 

I need help with on scan.I would like set if after scan code and in the code when word example "E" so navigate on other screen

 

How do it?

 

Categories:
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @gabkis ,

     

    You can check the official document about the Barcode reader control:

    Barcode reader control in Power Apps - Power Apps | Microsoft Learn

     

    So, OnScan of the scanner button, you can update a variable where includes the result if the condition matches, then according to the result, judging whether navigating or not:

    UpdateContext({varNavOrNot: "E" in Last(Self.Barcodes).Value});
    If(varNavOrNot, Navigate(EScreen))

     

     Best regards,

  • gabkis Profile Picture
    82 on at

    Hi, it works great. Can you still advise me if I need more than one condition, e.g. if the code contains the letter A, then display screen 4, if it contains the letter B, then screen 5

    Thank you so much 🙂

  • gabkis Profile Picture
    82 on at

    And if the code does not contain the given letter, I would like a warning that the code is not correct.

     

    Thank you

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @gabkis ,

     

    The formula will be totally different in this case:

    If("A" in Last(Self.Barcodes).Value, Navigate(Screen4), "B" in Last(Self.Barcodes).Value, Navigate(Screen4), "E" in Last(Self.Barcodes).Value, Navigate(Screen6), Notify("Code is incorrect", NotificationType.Warning))

     

    Best regards,

  • Verified answer
    gabkis Profile Picture
    82 on at

    Hi,

    Perfect 🙂

     

    Thank you so much

  • Verified answer
    gabkis Profile Picture
    82 on at

    Hi,

    Hi, how can I use the MID function where I would select a special letter, e.g. R in the code at position 3 in the word WORK, if so, navigate to screen 2, e.g.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard