---
title: Barcode / QR Scanning & Parsing
slug: barcode-qr-scanning-and-parsing
icon: {"faIcon":"fa-solid fa-barcode"}
docTags: 
createdAt: 2025-06-04T14:31:40.937Z
---

The Barcode/QR Scanner control allows inspectors to scan codes during inspections, saving time on data entry and reducing errors. It supports both camera-based scanning and manual entry, and can display the scan result in the report in multiple formats.

### How It Works

Once a barcode or QR code is scanned, the following display options can be toggled on/off:

- **Image of Scan**: The actual image captured by the device.
- **Scanned Code Text**: The raw alphanumeric code contained in the barcode or QR.
- **Extracted Code Image**: An image file of just the barcode region (if enabled).

You can also choose whether this information appears only during the inspection or in the final report as well.

### Manual Entry Option

If a scanner isn’t available or the code is damaged, you can enable **Manual Entry** so users can type the code instead.

## Output Parsing

Parsing allows you to break up a scanned code into smaller pieces of data and send them to different fields in your form.

### Why It’s Useful

Many barcodes contain multiple pieces of information in a single string — for example:

:::BlockQuote
123|STEEL-002|New York
:::

This might represent:

- Item ID: 123
- Product Code: STEEL-002
- Location: New York

Instead of storing that as one long text value, you can split it into separate fields automatically using parsing.

## Parsing Setup

Once parsing is enabled, you can configure:

- **Parse by**:
  - **Delimiter** (e.g., pipe |, comma ,, dash -)
  - **Number of Characters**
- **Prefix/Suffix**: If the code is wrapped in brackets or other characters (like \{123|XYZ}), you can trim them off.
- **Destination Fields**: Assign each extracted segment to a specific field in your template.

### Example: Steel Pipe Tracking

Say each pipe has a barcode that looks like this:

:::BlockQuote
P001-4IN-0524
:::

You can:

- **Parse by Delimiter** -
- Send:
  - P001 to **Pipe ID**
  - 4IN to **Diameter**
  - 0524 to **Production Batch**

This allows inspectors to instantly scan and populate the form with structured, validated data — no manual typing needed.
