Skip to content Skip to sidebar Skip to footer

Barcode Scanner And Input Fields, Replace New Line Call To Tab Call?

So barcode scanners end each scan with a carriage return, which messes up forms by submitting them. Is it possible to change this so that it calls a tab instead (thus moving to the

Solution 1:

Yes, it is possible. There are 2 ways:

  1. reprogram the barcode reader to send the TAB key instead of a carriage return after reading a barcode
  2. use javascript to capture the submit event and inspect the form state. Either prevent submit and move focus to the next field or allow the submit event to continue based on the form state.

Post a Comment for "Barcode Scanner And Input Fields, Replace New Line Call To Tab Call?"