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 / Change focus basing on...
Power Apps
Answered

Change focus basing on typed text

(0) ShareShare
ReportReport
Posted on by 6

Hello everyone,

I have a task to write simple app, which will work on an industrial long range barcode scanner.

Basically I have few form with text inputs, where the users will scan some barcodes.

I can not use barcode plugin from powerapps, because it uses camera and not the scanner in the device.

My problem is - after the user scan some barcode, the software always ends such scan with a CRLF, so i have 1234567890CRLF.

I want to automatically change a focus to another text input after the user scanned something to a field. I tried to do it with OnChange Event, but it does not work until the focus is lost which is not an option, because it has to be done automatically.

How to do it in powerapps?

 

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @empe2,

    Please try this.

    1. Set App.OnStart property as follows to create a blank collection with ID, the number of rows is based on number of text inputs

    ClearCollect(ColScan,{ID:1,Value:""},{ID:2,Value:""},{ID:3,Value:""});Set(VarID,1)

    2. Set BarcodeScanner1.OnScan as follows, save scan value into the collection in turn.

    Patch(ColScan,LookUp(ColScan,ID=VarID),{Value:BarcodeScanner1.Value});Set(VarID,VarID+1)

    3. Set the 1st Text input.Default property: LookUp(ColScan,ID=1).Value

    Set the 2nd Text input.Default property: LookUp(ColScan,ID=2).Value

    Set the 3rd Text input.Default property: LookUp(ColScan,ID=3).Value

    Snipaste_2020-04-23_17-49-39.png

    This works well on my side, please have a try to see if this works for your case.

    Sik

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 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard