Hello,
QR Code in the program once scanned gets erased when you move to the previous question.
How do you ensure that once the barcode is scanned it gets saved even when u go back to the previous question. i.e when one is editing the questionnaire
PROC QR_CODE
preproc
if QR_CODE = "" then
QR_CODE = barcode.read("Scan the barcode");
endif;
Barcode Scanning Not Saving
-
- Posts: 1796
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Barcode Scanning Not Saving
What do you mean when you say that the barcode is erased? Your code looks okay ... it will fill in the QR_CODE field only when that field is empty.
Are you using skips in system-controlled mode to move around the questionnaire when modifying it? If so, perhaps that field is being left "off path" (skipped), which would mean that it is cleared when the case is saved.
Are you using skips in system-controlled mode to move around the questionnaire when modifying it? If so, perhaps that field is being left "off path" (skipped), which would mean that it is cleared when the case is saved.