Can data from a barcode/QR code populate multiple fields?

3190
5
Jump to solution
08-18-2017 02:56 PM
RebeccaFuda
New Contributor III

I'm wondering if data from a bar code or QR code can be split up and used to populate multiple fields in a survey.  For example, QR codes on hunting licenses contain info on hunter first and last name and license #.  Is there any way to split up this info so that it populates 3 different fields?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JamesTedrick
Esri Esteemed Contributor

Hi Rebecca,

The first two items (characters 1-11, 12-13) can be easily extracted using the substr() function.  At this time, we can't necessarily get the other 2 as that would require parsing a variable length string.

View solution in original post

0 Kudos
5 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Rebecca,

Currently, the values can be split up if they occur at known positions (character counts) in the text read from the bar code.  We'd like to be able to support the type of parsing you're describing- do you have a sample read from a barcode that could be shared?

RebeccaFuda
New Contributor III

1798765432139 4ELWYOMING SPORTSMAN 112345678910

The information I would need to extract is the first 11 characters, which is the license # (17987654321), the following two characters are the hunt area (39), first name is Wyoming and last name is Sportsman.

JamesTedrick
Esri Esteemed Contributor

Hi Rebecca,

The first two items (characters 1-11, 12-13) can be easily extracted using the substr() function.  At this time, we can't necessarily get the other 2 as that would require parsing a variable length string.

0 Kudos
RebeccaFuda
New Contributor III

Thanks James.  Are there any plans to allow parsing of variable length strings?  This would save users of my survey quite a bit of time.  Also, is there any forum where users can requests new features/enhancements in future versions of Survey123?

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Rebecca,

We don't have specific plans for this function but we have a few other scenarios where we are looking to parse more complex data formats.  We're considering methods to address this in the future.

The Survey123 team monitors the GeoNet community for features/enhancements.  A slightly more centralized way is to post the idea at https://community.esri.com/community/arcgis-ideas or file a technical support enhancement request

0 Kudos