Last week we received a few questions from clients on how to include a barcode/QR code question in an XLSForm, this post will guide you on how to do this.
Let’s say, you need to carry out a registration survey and the unique identifier is a barcode. To add this type of question and scan the barcode follow the below steps:
Step 1: Include a barcode question in your xlsform. Please have a look at this
link for the exact syntax to include in your form.
Step 2: We recommend installing
ZXing barcode scanner app from Google Play Store. This application will be launched when answering the barcode question.
Step 3 (Optional): After scanning the barcodes during registration you can opt to use this information in another survey to identify the people registered by using our
Linking a dataset feature. You can also create a unique QR Code, such as the uid and use the code as unique identifier to pull data from the CSV file using
pull data function.
Please find attached a sample XLSForm and CSV file.