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 / Initiating on change w...
Power Apps
Answered

Initiating on change without hitting enter with external barcode scanner

(0) ShareShare
ReportReport
Posted on by 3,224
We have a customer who uses power apps and they have external Bluetooth scanners. These work woth power apps when we set focus to a text field and scan, the scan value is captured in the text field.
 
The challenge is initiating an action to do something with the scan value (like an on change). It captures the scan value but user has to click on the screen or hit enter for the action to trigger. Users don’t want to have to tap after they scan. Any way to initiate a process like on select or on change without the user having to push a button on the screen?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    Hi @jlindstrom ,

    I am not sure I am reading your requirements correctly, but are you referring to initiating the scan or dealing with the scan output?

    For the second, the OnScan property of the scan control can initiate whatever code you need. For the first, it is possible to have the scanner re-initiate after a scan by adding to the end of the code mentioned above

    Select(YourScannerControlName)

    Is this what you are referring to?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Joel CustomerEffective Profile Picture
    3,224 on at

    Warren, that is not what I'm referring to--it's not the power apps scanner control, it is an external Bluetooth barcode scanner which basically acts like an external keyboard on an android tablet. You set focus on a text field, scan with the external scanner, and the barcode value is captured in the text field. The challenge is to initiate a process on change of the field the value must be committed by tabbing our of the field or clicking something else on the tablet screen. Users don't like that extra click after they scan

  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    OK @jlindstrom ,

    Sorry I should have picked that up. I would imagine you have tried the OnChange of the Text field and it does not work?

    I actually have the same issue with users needing to click away from text fields or at times they do not Patch. The solution here (not sure if it helps you) was to SetFocus to something else on the screen at the start of the Patch code. Maybe you can try this at the end of your scan commit code.

  • Joel CustomerEffective Profile Picture
    3,224 on at

    good suggestion @WarrenBelz, but the problem is setting focus requires a trigger--I'm not seeing anything that will tell me when I need to change focus to commit when someone just enters a value in a field and doesn't tab off or click enter

    I like the way you are going, but we need some kind of trigger.

  • WarrenBelz Profile Picture
    153,075 Most Valuable Professional on at

    Thanks @jlindstrom ,

    What happens to the text in the box after it is scanned (and before the next one)

  • Joel CustomerEffective Profile Picture
    3,224 on at

    Nothing happens. It's equivalent to typing in a field and not hitting enter or tabbing out of field. On change and on selected events are not triggered.

  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at

    Just learned from Guido Priete that many hardware scanners have the ability to add enter key after scanning, so that looks like the best option.

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard