> For the complete documentation index, see [llms.txt](https://docs.labii.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.labii.com/user-guide/navbar/scan.md).

# Scan

## Overview

Labii includes built-in barcode and QR code scanning to help you find records or add records faster.

You can use either your device camera or an external scanner.

## Scan page

Use the Scan page to scan barcodes or QR codes directly.

{% stepper %}
{% step %}
Click **Scan** in the navbar.
{% endstep %}

{% step %}
Select your input source (camera or external scanner).
{% endstep %}

{% step %}
Scan the barcode/QR code.
{% endstep %}
{% endstepper %}

Once the scan is completed, Labii executes the configured post-scan action.

### Scanning equipment

Labii supports both built-in cameras and external commercial scanners.

* **Camera**: Scan using the camera on your laptop, tablet, or phone. On mobile devices, you can choose front or back camera.
* **Scanner**: Use any compatible external scanner by connecting it to your device and scanning directly.

### Action after scan

You can configure what happens after each scan:

* **Append to list**: Adds results to the right panel for bulk processing.
  * Bulk edit, same as [Batch operations](/user-guide/list-view/bulk-operations.md#bulk-edit)
  * Bulk print, same as [Batch operations](/user-guide/list-view/bulk-operations.md#bulk-print)
  * Actions, same as [Batch operations](/user-guide/list-view/bulk-operations.md#bulk-export)
  * Open list view
  * Clear
* **Open in new**: Opens the matched result in a new tab.
* **Open in current**: Opens the matched result in the current tab.

<figure><img src="/files/GOfzNBfWzJI3GMNIXFU0" alt=""><figcaption></figcaption></figure>

## ForeignKey(s)

[ForeignKey](/widgets/column-widgets/form/dropdown.md#foreignkey) and [ForeignKeys](/widgets/column-widgets/form/dropdown.md#foreignkeys) widgets also support scanning, so you can select records automatically.

Example: to assign a storage box to a sample, scan the storage box barcode from the ForeignKey(s) widget.

{% stepper %}
{% step %}
Open a form that contains a [ForeignKey](/widgets/column-widgets/form/dropdown.md#foreignkey) or [ForeignKeys](/widgets/column-widgets/form/dropdown.md#foreignkeys) field.
{% endstep %}

{% step %}
Open the scanner from that field.
{% endstep %}

{% step %}
Scan the target record barcode/QR code to select it.
{% endstep %}
{% endstepper %}

<figure><img src="/files/PNtvZEyBX22XDRNVVJLa" alt=""><figcaption></figcaption></figure>
