This topic is locked
[SOLVED]

Barcode Scanner - After scan enter value and go to new record

11/28/2022 8:29:34 AM
PHPRunner General questions
Dalkeith author

Probably easy but

I have a focus on a add page and a single field which is barcode

Looking to allow a user with a handheld scanner to scan value which will automatically trigger save / add new and new add form appears with focus on barcode field ready for next input.. Continues until user breaks out of loop

I've got whisky casks coming in with barcodes on them and they will be in batches. Users are needing to scan consecutive batches of between 1 and 100 casks

Thank you for any ideas..

admin 11/28/2022

This is a two step process.

  1. You need to instruct your barcode reader to send Enter key code after reading the barcode.


  2. You need to add the code that will submit the form on Enter. This article can help:
    https://stackoverflow.com/questions/24543509/submit-form-when-enter-key-is-pressed



Dalkeith author 11/28/2022

Ta