# Fields - QRCodes

#### Syntax

You need to add an ">" in front of your field name The final syntax should be: **{>fieldName}**

```
{website} - Regular Field that supports only regular text / number
{>website} - Special field that creates QRCodes
{#>people.website} - Special field in table/section "people" which creates QRCodes
```

### Adding a dynamic QRCode to document template

<figure><img src="https://1713720388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRMYKAUZ0NsaDRvNONC3%2Fuploads%2FZtcia7P4bhmtcDObPMBq%2Fimage.png?alt=media&#x26;token=7334c3b3-cab3-41d8-a983-3ab47ba963b0" alt="" width="306"><figcaption><p>Template</p></figcaption></figure>

<figure><img src="https://1713720388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRMYKAUZ0NsaDRvNONC3%2Fuploads%2FnwzkHhyRTtiRipeuRRuj%2Fimage.png?alt=media&#x26;token=5e8f634e-c2a9-4d1b-896b-8ccf3cac5580" alt="" width="252"><figcaption><p>Output</p></figcaption></figure>

### QRCodes data limits

QR codes are limited to 1,000 characters and 50 lines. If you exceed either of these limits, the QR code will not appear in the output document.

### QRCode Size

By default, the size of the QR code is determined by the amount of data it contains (more data results in a larger QR code). You can manually set the width and height, or limit the maximum width or height to preserve the aspect ratio using the `"size"` and `"maxSize"` formatters. We recommend not changing the size of the QR code to ensure readability. If needed, use `"maxSize"` to constrain dimensions while maintaining quality.

Examples:

<pre><code>{>qrcode}
<strong>{>qrcode2 | maxSize:300:500}
</strong></code></pre>

**How to pass the QRCode data using API**

You can provide data for the QR code through the API. To include multiline text, use the newline character `"\n"`.

<figure><img src="https://1713720388-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIRMYKAUZ0NsaDRvNONC3%2Fuploads%2FZz7Rlf7B2wJah9eqX4zC%2Fimage.png?alt=media&#x26;token=452e2acd-7420-42fa-a19f-2a32ff5cf1aa" alt=""><figcaption></figcaption></figure>
