Bar code scanning feature for survey app

More
2 years 10 months ago #136228 by Mazi
Some users have asked us if it is possible to add a bar code scanning feature to the Limesurvey Android app OfflineSurveys . We did a little research and found the ZXing ("zebra crossing") library which support various bar code formats (see documentation at their Github page).

Bar code scanning is available for our OfflineSurveys app since version 1.15 (release date 2016-05-07) and uses the device's camera to scan any bar code/QR code and converts it into text which is then stored in a Limesurvey "short text" question.
It is another of the additional Android multimedia questions the app offers. For all of these special question types we have created sample questions which you can directly import at your Limesurvey surveys, see www.offlinesurveys.com/add-android-multimedia-question .

We are happy about any feedback and background information about how you may be using this feature.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
2 years 5 months ago #142735 by TingMasan
I tried to download the barcode question but canot make it work on my device. Is there any other process or update needed to make in the server before this features work?

Thank you.

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #142748 by Mazi
Please make sure that your survey matches the requirements mentioned at www.offlinesurveys.com/required-limesurvey-settings . Usually caching a survey fails because the survey isn't set to use all in one mode or it uses tokens or the welcome screen is shown.

Feel free to post a link to an activated test survey that matches the requirements so we can try to cache your survey (see www.offlinesurveys.com/add-new-survey for details about caching a survey).

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #142901 by TingMasan
Thank you for your reply.

The barcode question is working properly now in the android device.
Is it possible to prevent participant to scan/enter duplicate barcode? like an ID, once a barcode ID is save, no one will be allowed to use that ID to the whole survey?

Thank you.

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #142910 by Mazi

TingMasan wrote: Is it possible to prevent participant to scan/enter duplicate barcode? like an ID, once a barcode ID is save, no one will be allowed to use that ID to the whole survey?

Technically that isn't possible because for security reasons you can't check answers from other survey sessions at your own survey session.

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #142968 by TingMasan
Thank you. is there a workaround for this?

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago - 2 years 5 months ago #142970 by Mazi

TingMasan wrote: Thank you. is there a workaround for this?

None that I can think of since this is a technical limitation at Limesurvey.

The only solution would be to code such a feature for a custom PRO version of your OfflineSurveys app. If you are interested in a cost estimation please describe your requirements in details and drop us a note at This email address is being protected from spambots. You need JavaScript enabled to view it..

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com
Last edit: 2 years 5 months ago by Mazi.

Please Log in or Create an account to join the conversation.

More
2 years 5 months ago #143032 by TingMasan
Thank you for the info. appreciate it.

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #143702 by TingMasan
Hello,

I have survey with 2 groups, both groups has a barcode question and the participant must scan the same barcode ID for both question. Is there a way to stop the participant if the barcode ID are not the same?

The idea is same mention in this lnk: www.limesurvey-consulting.com/how-to-val...esses-at-limesurvey/ (Interrupt a Limesurvey survey if email addresses don’t match) but when i tried it on android device the participant can submit the data even if the ID don't match.



will scan same barcode

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago #144358 by Mazi
You can use conditions and a question of type text display with a warning which gets placed after the bar code question. Set a condition like this at the question's "relevance equation" field to show a warning if codes don't match:
bar1.NAOK!=bar2.NAOK

Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com
Want to use your survey offline -> www.offlinesurveys.com

Please Log in or Create an account to join the conversation.

More
2 years 4 months ago - 2 years 4 months ago #144367 by aaskoura
Hello,
I am attaching a workaround for unique barcode question...

This question will
- Query the existing LimeSurvey responses table to validate uniqueness every time you scan a new barcode (requires internet connectivity and read_response permission)
- Enforce the user to sync response before a new one (the data has to be fresh to ensure uniqueness)
- Disallow partial responses (any offline data will break the uniqueness)

Drawback: this question ensures uniqueness during the barcode scan, not during data sync (between the time a barcode was scanned until this barcode is synced with LimeSurvey, there's no way still to ensure uniqueness)

Please give it a try and let us know if you have any suggestion for improvement
Attachments:
Last edit: 2 years 4 months ago by aaskoura. Reason: clarification

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!