How to use a Text Input component to read a Barcode value?
- 30 Jan 2023
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
How to use a Text Input component to read a Barcode value?
- Updated on 30 Jan 2023
- 1 Minute to read
- Contributors
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
A barcode scanner component does not recognize an IR gun. So a text input component can be added to the page to enable users to scan or manually enter barcode values. To ensure that the barcode is complete and not broken, the keyCode variable is used in get variable field.
keyCode Logic:
- If the user adds the barcode with an IR gun, the item ≠ 0 if loop is triggered.
- If the user manually enters the barcode value and clicks enter, the item = 13(enter) loop is triggered and the barcode value is stored.
Was this article helpful?