I will be creating a sharepoint used to track inventory. The users will be able to scan a barcode of an item, and have that item automatically recorded as "existing." This would be a basic text box and "submit" button. The user may also type in the number if no scanner is available.
When scanning, I want to avoid requiring the user to click the button after scanning. My idea is to design the barcodes so that there is a "flag sequence" of characters that will indicate to sharepoint that the data entered was from a barcode (and not manually typed in). Then I can detect when the textbox contents change, if the "flag sequence" is at the end, and automatically click the button for the user. If the "flag sequence" is not there, then it is because the user is typing in the number by hand, and therefore the button will not be automatically clicked.
Is this possible? Is there a better way to do it? I don't have the ability to program the scanner to include a carriage return.