Barcode in Tablet

it possible to disable the camera when using barcode ? i need to use only barcode scanner

I believe most handheld scanners don't need to use the barcode component that uses the camera. In this case, the user would simply make sure the correct text field is selected and then scan whatever barcode, and the text will be entered into the input box/field.

the field is disable because i want only barcode scanner to be use not typing. what can i do ?

If you're using handheld scanners, they act as keyboards, so I don't know if there's anything you can do besides enable the input.

You can test this out by opening some note-taking app and scanning a barcode and see if it enters the text in it. If so, that's exactly what it's doing and you'll need to allow/enable text input. If you want the user to scan, maybe show a barcode symbol next to the field to "prompt" them to scan it.


do you have idea on how to disable the typing or copy paste ?

why would you disable this? if the scanner doesnt work, they might be able to type it in manually

3 Likes

Like @victordcq said, I wouldn't disable it either. If you have a bad scanner, or a damaged barcode, the user would need some other way to enter the value and by disabling this, it prevents them from doing so.

You should be doing input validation if possible also to verify the correct format of the input. The incentive for the user to use a barcode scanner is ease of use. I think everyone would rather scan a code rather than type it in.

2 Likes