# Scan barcode/QR code

The Action Node **Scan Barcode/QR code** may be used to scan Barcodes or QR code&#x73;**.** The Action Node may only be run from devices that have a camera.

{% hint style="info" %}
An example setup of Scan Barcode/QR code is showcased in our [Showroom!](https://showroom-dev.appfarm.app/action-nodes/scan-barcode-qrcode) You may view a demo and access the setup in Appfarm Create. If you do not have access, you may register [here](https://showroom.appfarm.app/sign-up).
{% endhint %}

{% hint style="info" %}
**Generate and display QR codes**

Appfarm Create supports generating and displaying QR codes. Read more [here](https://docs.appfarm.io/ui-components/image#generate-and-display-qr-codes).
{% endhint %}

## Settings

If the user declines the request to open the camera, **Scan Barcode/QR Code** will throw *GetUserMediaNotAllowedError* (Appfarm Error Code: 17004). One may use the Catch Exception Action Node to provide feedback to the user in this case.

### Target Property

Select the data source where the value from the Barcode/QR code will be stored. The value will be stored as a **String**.
