Announcements
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?
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,
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 🙂
And if the code does not contain the given letter, I would like a warning that the code is not correct.
Thank you
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))
Hi,
Perfect 🙂
Thank you so much
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 402 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 296 Most Valuable Professional