Barcode - Track scanned verses manual entry

970
2
Jump to solution
07-07-2023 02:00 PM
TCKauhi
Occasional Contributor

We have a survey with barcode field that users can either scan a barcode or manually enter the information. Is it possible to tell when a sample was entered manually as opposed to via a scanned barcode in Survey123?

0 Kudos
1 Solution

Accepted Solutions
IsmaelChivite
Esri Notable Contributor

Hi. If you have a single barcode question, there is no way you can tell if the data in it comes from the barcode scanner or manual input.

However, you could do this:

  • Add a barcode question and set its appearance to minimal. This will remove the textbox so users cannot manually enter data in it
  • Add a second text question and calculate it so it always shows the value from the barcode question

If the user scans the barcode, the text question will get data from the barcode.  The barcode question will ALSO have the barcode data in it.  That's how you can tell. If the user does not scan the barcode, manual entry will be needed and the barcode question will have no data.

 

Attaching an example for more clarity.

View solution in original post

2 Replies
IsmaelChivite
Esri Notable Contributor

Hi. If you have a single barcode question, there is no way you can tell if the data in it comes from the barcode scanner or manual input.

However, you could do this:

  • Add a barcode question and set its appearance to minimal. This will remove the textbox so users cannot manually enter data in it
  • Add a second text question and calculate it so it always shows the value from the barcode question

If the user scans the barcode, the text question will get data from the barcode.  The barcode question will ALSO have the barcode data in it.  That's how you can tell. If the user does not scan the barcode, manual entry will be needed and the barcode question will have no data.

 

Attaching an example for more clarity.

TCKauhi
Occasional Contributor

Thank you so much, this is exactly what we needed.