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