# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.labii.com/user-guide/navbar/scan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
