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?
Solved! Go to Solution.
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.
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?
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.
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.
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?
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