Barcode Scanning Not Saving

Discussions about CSEntry
Post Reply
nana
Posts: 6
Joined: May 7th, 2019, 3:41 pm

Barcode Scanning Not Saving

Post 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;
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Barcode Scanning Not Saving

Post 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.
Post Reply