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 / Scan to inputbox to ca...
Power Apps
Unanswered

Scan to inputbox to cause the onChange event to fire.

(0) ShareShare
ReportReport
Posted on by 44

I have a sample app for scanning barcode and would like the input box onchange event to fire when the image scan has completed. Then navigate to another screen.  The navigation function work if I tab away from the box "lostfocus" or press return, but, if I scan the event does not fire when the input box changes from empty to the scan results.  Some examples suggest that updateContext function using a variable, but, input boxes do not have a text property.

 

Any suggestions would be greatly appreciated.

Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    on at

    Hi @roknron,

     

    Would it be available for you to share some information regarding the controls used in your App?

    A barcode scanner control and a TextInput?

    The Onchange property of the TextInput controls how the app responds when the user changes the value of a control (for example, by adjusting a slider).

    I will try to make some tests from my side, and see if I could find out any workarounds.

    Regards

     

  • roknron Profile Picture
    44 on at

    The app is very simple.  It has two screens.  The first screen has a camera control named MyScanner and a textinput box name TextInput1 with the OnChange propertie set to Navigate(Screen2, Fade) and the Default propertie set to MyScanner.Text.

     

    The second screen has a button that navigates back to Screen1, and two text boxes.  One text box is a caption for the second text box that indicates the contents of hte box below it.  The second text box has its Text property set to TextInput1.Text.

     

    Now if I run the app from my iPhone the scanner will populate the TextInput1 with the desired information, but, the only way I have been able to get the OnChange event to fire is to select the text box type a space and press the return key on the soft keyboard.  Do I need to us an edit form control and then place my on controls the first screen?  Using a traditional HTML input form with a bit of java would produce the desired result.

  • Ernestas Profile Picture
    2 on at

    Any news on this? Trying to make the scanner hidden once it actually scans something. But data getting into input doesn't fire the OnChange event and there's no event onScanned either.

  • walegado_gswc Profile Picture
    27 on at

    I would also like to know how this is done.  I'm also have created a screen to scan a barcode then need it to automatically go to another screen.

  • Community Power Platform Member Profile Picture
    on at

    Yes I would like to see this happen to. We need to beable to do some navifation (or other processing once an barcode is scanned

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard