> ## Documentation Index
> Fetch the complete documentation index at: https://filla.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# QR/Barcode Generator

> Generate QR codes and barcodes from Airtable field values and save them as image attachments.

## What this tool does

The QR/Barcode Generator reads values from a field and creates a QR code or barcode image for each record. The generated images are saved to an Airtable attachment field.

## Settings reference

### Source

| Setting                     | Description                                                                                                                           |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| **Source table**            | The table containing the data to encode.                                                                                              |
| **Source field**            | The field whose value is encoded. Supports Text, URL, Email, Phone, Number, Auto Number, Barcode, Formula, Rollup, and Lookup fields. |
| **Output attachment field** | The attachment field where generated images are saved.                                                                                |
| **Code type**               | QR Code, Code 128, EAN-13, UPC-A, Code 39, or DataMatrix.                                                                             |

### Appearance

| Setting                        | Description                                                                                                                                            |
| ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Foreground color**           | The color of the code pattern. Default: black (`#000000`).                                                                                             |
| **Background color**           | The background color. Default: white (`#ffffff`).                                                                                                      |
| **Size (px)**                  | Width and height of the generated image in pixels. Default: 300.                                                                                       |
| **Error correction (QR only)** | Low (7%), Medium (15%), Quartile (25%), or High (30%). Higher correction makes codes scannable even if partially damaged. Only shown for QR Code type. |
| **Show value below code**      | Display the human-readable source value beneath the barcode. Not available for QR Code or DataMatrix.                                                  |

### Output

| Setting                              | Description                                                                                                                        |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| **Image format**                     | PNG or SVG. SVG is only supported for QR codes; 1D barcodes always produce PNG.                                                    |
| **Filename pattern**                 | Pattern for the generated file name. Tokens: `{value}` (encoded value), `{recordId}` (Airtable record ID). Default: `{value}.png`. |
| **Skip records with existing codes** | Skip records that already have attachments in the output field.                                                                    |

### Record filters

| Setting            | Description                          |
| ------------------ | ------------------------------------ |
| **Source view**    | Limit to records in a specific view. |
| **Filter records** | Additional filter conditions.        |

## Code types

| Code type      | Best for                                                             |
| -------------- | -------------------------------------------------------------------- |
| **QR Code**    | URLs, contact info, long strings. Scanned by any smartphone camera.  |
| **Code 128**   | Alphanumeric text and numbers. Common in logistics and shipping.     |
| **EAN-13**     | Retail products. Requires exactly 12 digits (13th is a check digit). |
| **UPC-A**      | North American retail. Requires exactly 11 digits.                   |
| **Code 39**    | Industrial and inventory. Letters, numbers, and a few symbols.       |
| **DataMatrix** | Compact 2D code for small items. Used in electronics and medical.    |

## Common questions

<AccordionGroup>
  <Accordion title="Can I use SVG format for barcodes?">
    SVG is only supported for QR codes. All 1D barcode types (Code 128, EAN-13, UPC-A, Code 39) produce PNG files.
  </Accordion>

  <Accordion title="What if my source field value is empty?">
    Records with empty source fields are skipped. An error or skip is logged in the execution log.
  </Accordion>

  <Accordion title="Can I generate a QR code that links to my form?">
    Yes. Create a Formula field in Airtable that builds the form URL with the record ID (`"https://app.filla.io/forms/{formId}/" & RECORD_ID()`), then point the QR generator at that formula field.
  </Accordion>
</AccordionGroup>
