Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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?
  • Verified answer
    Joel CustomerEffective Profile Picture
    3,224 on at
    Re: Initiating on change without hitting enter with external barcode scanner

    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.

  • Joel CustomerEffective Profile Picture
    3,224 on at
    Re: Initiating on change without hitting enter with external barcode scanner

    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.

  • WarrenBelz Profile Picture
    146,547 Most Valuable Professional on at
    Re: Initiating on change without hitting enter with external barcode scanner

    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
    Re: Initiating on change without hitting enter with external barcode scanner

    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
    146,547 Most Valuable Professional on at
    Re: Initiating on change without hitting enter with external barcode scanner

    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
    Re: Initiating on change without hitting enter with external barcode scanner

    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
    146,547 Most Valuable Professional on at
    Re: Initiating on change without hitting enter with external barcode scanner

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,547 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard