You are viewing limited content. For full access, please sign in.

Question

Question

BarcodeReadComplete trigger

asked on May 31, 2019

Does anyone know of a BarcodeReadComplete trigger?  I have 2 fields.  After reading a barcode in the 1st text field, I want to automatically set focus to the 2nd text field.

I can't use ".on('change'" on the 1st field, because you would have to change focus to trigger it.

I can't use ".on('input'" because that changes after the 1st character is read

0 0

Replies

replied on May 31, 2019

A lot of the barcode scanners can be configured to send an "Enter/Return" at the end of the barcode data.

2 0
replied on May 31, 2019

Input fields don't know if it was a bar code reader that filled them. However, they often send keystrokes to fill input fields. So, you might be able to watch the keyup event and try to figure out when the bar code reader is done. You might be able to configure the reader to add an extra keystroke that you can watch for. You might even be able to get it to send a tab after the numbers have been entered. Or, you could have it send an invalid character that you could sniff for using keyup and then change focus yourself.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.