10xSebastian / barcode-scanner.js

Javascript library to handle and identify data (keystrokes) entered by a barcode scanner.
GNU General Public License v2.0
17 stars 7 forks source link

I have to do multiple different scans on the same page #6

Open 10xSebastian opened 8 years ago

10xSebastian commented 8 years ago

Asked by @smartmeter here: https://github.com/pape-io/barcode-scanner.js/issues/3#issue-119083836

I have a scenario where the user may scan one, or many scans like a shopping cart, so I have put it in a textbox or listbox will the target work with a listbox. How can I achieve this where each item is separate.

If I have 2 input boxes, how does the scan know which one to put it in.

10xSebastian commented 8 years ago

You have to use custom actions to handle this case: https://github.com/pape-io/barcode-scanner.js#add-custom-actions

Or if it is a two steps procedure, you have to disable the first input field as soon as its filled by the bar code scanner. Then it will put the second scan it the second input and so on