[Barcode Plugin] How can we detect multiple barcode as an error using Barcode Plugin?

Forge Component
(20)
Published on 2 Aug by OutSystems R&D
20 votes
Published on 2 Aug by OutSystems R&D

Hello ,

We have a requirement in our project that,  when a user trying to scan a barcode but scan not completed due to multiple bar codes  Then they can see an error message like “Multiple bar codes detected. Try again".

So how can we achieve this from the Barcode plugins available in forge? As we have to detect that there are  multiple barcodes and there should be consider as error.


Thanks!

Arpita Pancholi

Hello Arpita,

One way to check if multiple barcodes are detected is to check the length of the returned string.