Hi,
I am putting together a form that uses a barcode scan functionality.
Is there any way I can place a max characters parameter on the barcode to stop the wrong barcodes/formats being scanned/used?
Appreciate any help.
Best,
Harry
Hi,
I am putting together a form that uses a barcode scan functionality.
Is there any way I can place a max characters parameter on the barcode to stop the wrong barcodes/formats being scanned/used?
Appreciate any help.
Best,
Harry
Hi @Harry_Clark ! As you are new to the community, when you get a chance, please introduce yourself here.
I am not super familiar with barcodes specifically, but in general you can add a constraint to a prompt, and so possibly that would work to constrain the length of the barcode, or the format of the resulting variable. See ODK-X XLSX Converter Reference — ODK-X Docs for some details on constraints
I agree with Caroline that adding a constraint to the barcode type will prevent users from moving on until the value is acceptable.
Thank you! I will definitely introduce myself. And thank you for the constraint suggestion and that useful converter resource, I have saved that for future reference.
So it should look like this under the constraint column right? If I am trying to limit the max characters to 10.
string-length(.) = 10
Screenshot for reference here.