Page 1 of 1

Barcode Scanning Not Saving

Posted: October 3rd, 2020, 2:19 am
by nana
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;

Re: Barcode Scanning Not Saving

Posted: October 5th, 2020, 8:51 am
by Gregory Martin
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.