Barcode scanner extension

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tgr
    Junior Member
    • Jun 2025
    • 5

    #1

    Barcode scanner extension

    I wanted to make it easy to scan bar codes and QR codes into fields in Espo, without using external scanners. Laptops, phones, tablets all have cameras that can read codes, and there is a HTML5 BarcodeDetector API, albeit not very widely supported. My extension polyfills the detector API using the ZXing browser layer if natively not supported.

    Add the field to an entity, and in edit mode you'll see a button with a QR code icon on it. Click that, and a live camera view is displayed in a modal popup. Show a code to the camera view and the field is populated with the value from the code.

    Click image for larger version

Name:	image.png
Views:	0
Size:	8.6 KB
ID:	122534

    This is still a work in progress, but basic functionality is there. Happy to receive feedback!​
    Espo CRM barcode scanner extension. Contribute to tgranqvist/barcode-scanner-field development by creating an account on GitHub.
  • emillod
    Active Community Member
    • Apr 2017
    • 1522

    #2
    Great idea

    Comment

    • maxniebieski
      Junior Member
      • Jul 2024
      • 22

      #3
      Great idea. It could be expanded to scan the barcode to find the assigned record.
      Last edited by yuri; Yesterday, 07:11 AM.

      Comment


      • tgr
        tgr commented
        Editing a comment
        Yes, I have to look into how to add a scan button to the search field. Is there a view for that too, do you know? I'm also thinking to extend the default barcode field to allow scanning into that in edit/create mode. The field would display the barcode in chosen format in view mode.
        Last edited by tgr; Yesterday, 06:53 AM.
    • maxniebieski
      Junior Member
      • Jul 2024
      • 22

      #4
      I think it would be better to add your own search modal only for barcodes.

      Comment

      Working...