Barcode scanner input not reading input [Perspective]

I have a barcode scanner that uses a wired connection. It works fine when I use a text field, but nothing happens when I use the barcode scanner input component. Do I need to set up a tcp connection to use the scanner input?

Hi Christy.

The barcode scanner input is designed for keyboard web scanners. The component is continuously listening, waiting for either the prefix and suffix characters to be entered, or the regex pattern to find a match. To save your barcode string, you would need to configure an onEvent script that would automatically save the scan (the barcode string) to a tag. It may also be helpful to configuring a small delay between the characters input.
https://docs.inductiveautomation.com/display/DOC81/Perspective+-+Barcode+Scanner+Input