Barcode

Hi
I have the below code using the barcode component. The image is scanned but no result is returned. Anything I am doing wrong?
Fliplet.Barcode.scan()
.then(function (result) {
// Add custom code here to use the result from the scan
var textField = document.getElementById(‘29981888’); // Replace ‘your-text-field-id’ with the actual ID of your text field
textField.value = result.text;

// result.format - tells you what format the code is
// result.cancelled - true if user cancels the scan

})
.catch(function (error) {
// Scan failed
var textField = document.getElementById(‘29981888’); // Replace ‘your-text-field-id’ with the actual ID of your text field
textField.value = ‘Fail’;
});

This is the html field

Hi Dhavaraj,

Have you added the fliplet-barcode library to your screen resources? See here: Scan a barcode or QR code - Fliplet Knowledge Center

Thanks,
Deb