function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
imishraimishra 

Barcode Scanner using Lightning Component

Hi,

I have a requirement to create a lightning component to have a button to scan any types of barcodes and return me the code.
I tried using QuaggaJS library but that doesn't work for all the barcodes.
Can someone help me to figure out if there are other ways to do it.

Thanks.
VinayVinay (Salesforce Developers) 
Hi,

I do not see any limitations on using QuaggaJS library with barcodes.

Please review below examples for your reference.

https://www.jitendrazaa.com/blog/salesforce/barcode-scanner-component-in-salesforce-lightning-video/
https://medium.com/my-journey-with-salesforce1-platform/lightning-component-to-scan-barcodes-using-salesforce1-e695470c2eb0
http://bobbuzzard.blogspot.com/2014/03/reading-barcodes-in-salesforce1.html

Few related Appexchange details:

https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FABeWUAX
https://appexchange.salesforce.com/appxListingDetail?listingId=a0N30000000ptq1EAA
https://appexchange.salesforce.com/listingDetail?listingId=a0N3A00000DlGOJUA3

Also you can try to log a case with salesforce support for alternate workaround as per your use case.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks,
Vinay Kumar

 
imishraimishra
Thank you Vinay. I was able to get it working.
VinayVinay (Salesforce Developers) 
Hi,

Glad to hear you were able to get on this and hope above information was helpful.

Please mark as 'Best Answer' so that it can help others in the future.

Thanks,
Vinay Kumar