> ## Documentation Index
> Fetch the complete documentation index at: https://kb.snagr.co.uk/llms.txt
> Use this file to discover all available pages before exploring further.

# How to set up the QR Code image field?

<img src="https://mintcdn.com/snagr/oAfVEwXIu3-FimgO/images/direct/1594978288112-1594978288112.png?fit=max&auto=format&n=oAfVEwXIu3-FimgO&q=85&s=61e350940934cfaced7515196fb7fa7f" alt="1594978288112" width="17" data-path="images/direct/1594978288112-1594978288112.png" /> **Website**

Put your hands together to welcome our new function - QR Code image.\
it is a short cut to fill multiple fields by scan a QR code/Bar code via APP.

There have 2 scenarios or more you may use it.

* Create your own QR Code to pre-filled multiple fields.
* Scan the QR Code/Bar Code on the document provided by the parties.

To set up, please access the form wizard from Company admin > Inspection > Form > Form wizard.

Set a field properties to a QR Code image, enter the code for mapping.

Below have 2 types of code you may use.

1️⃣

```json theme={null}
{
  "qrcodeType": "QRCodeToImage",
  "parseType": "array",
  "arraySeparator":",",
  "arrayMapping": [
        {
            "CheckCode":"{Checkcode}"
        },{
            "CheckCode":"{Checkcode)"
        },{
            "CheckCode":"{Checkcode}"
        },{
            "CheckCode":"{Checkcode}"
        },{
            "CheckCode":"{Checkcode}"
        },{
            "CheckCode":"{Checkcode}"
        }
                    ]
}
```

To match which above code, the content of the QR Code has to separate the item by a comma.

Such as,

1,2,03/04/2015,18:00,7,8

Would be nice to use it to create your own QR Code.

*How to create?\
Search "QR Code Generator" via the web search engine!*

2️⃣

```json theme={null}
{
    "qrcodeType": "QRCodeToImage",
    "parseType": "queryString",
    "arrayKeyMapping": [
        {
            "key":"{key1}",
            "value":"{Checkcode}"
        }, {   
            "key":"{key2}",
            "value":"{Checkcode}"
        }, {
            "key":"{key3}",
            "value":"{Checkcode}"
        }, {
            "key":"{key4}",
            "value":"{Checkcode}"
        }, {
            "key":"{key5}",
            "value":"{Checkcode}"
        }, {
            "key":"{key6}",
            "value":"{Checkcode}"
        }
    ]
  }
```

To match which above code, the content of the QR Code has to describe content with the \{key}, start with "?" and separate the item by "&".

Such as,

```text theme={null}
?Name=SnagR&Ref=ref no.123456789&Date=12/07/2020&Time=18:00&Type=Demo&Location=On Site
```

You may scan the QR Code/Bar Code on the document first and see which one would meet your needs.

*Where to scan?*\
*Search "QR Code Scanner" via the web search engine or scan via the camera on your device!*

⭐️ To know what is the \{Checkcode} of that field, please screenshot it, remark which field you are willing to know, and send it to the support team :)\
[How can I contact SnagR?](/en/faq/general/how-can-i-contact-snagr)

Let's practice!

Please create a new inspection with the below form "QR code" template.\
Please create the form code as "**QR**".\
[Check this link to know how to create a new inspection template.](/it/impostazione-progetti/modelli-di-documento-amministrazione-societa/how-to-design-inspections-in-snagr)

<img src="https://mintcdn.com/snagr/oAfVEwXIu3-FimgO/images/direct/1595223596747-QR-test.jpeg?fit=max&auto=format&n=oAfVEwXIu3-FimgO&q=85&s=d646759950a0dc5da83f20fb9eb19426" alt="QR test" width="1024" height="768" data-path="images/direct/1595223596747-QR-test.jpeg" />

🎬 Start

<img src="https://mintcdn.com/snagr/oAfVEwXIu3-FimgO/images/direct/1595224161468-Admin_Website.004.jpeg?fit=max&auto=format&n=oAfVEwXIu3-FimgO&q=85&s=f2a547296c2c21cfdd6b60265c175264" alt="Admin Website.004" width="1024" height="768" data-path="images/direct/1595224161468-Admin_Website.004.jpeg" />

Create fields from the <u>left to right, from the top to bottom</u>.

Set the form field properties to the corresponding type.

<img src="https://mintcdn.com/snagr/oAfVEwXIu3-FimgO/images/direct/1595224422873-1595224422873.png?fit=max&auto=format&n=oAfVEwXIu3-FimgO&q=85&s=73699661efaad4c3d10464d47659d8d9" alt="1595224422873" width="1024" height="768" data-path="images/direct/1595224422873-1595224422873.png" />

Select the **QRCode image.** (the QRCode will be stamped on the form.)

<img src="https://mintcdn.com/snagr/oAfVEwXIu3-FimgO/images/direct/1595224342202-Admin_Website.006.jpeg?fit=max&auto=format&n=oAfVEwXIu3-FimgO&q=85&s=beb8b05a72d1e95f8a84051ad08bd787" alt="Admin Website.006" width="1024" height="768" data-path="images/direct/1595224342202-Admin_Website.006.jpeg" />

Back to the Attributes and enter the code to mapping.

<img src="https://mintcdn.com/snagr/oAfVEwXIu3-FimgO/images/direct/1595229165052-Screenshot-2020-07-17-at-4.17.48-PM.png?fit=max&auto=format&n=oAfVEwXIu3-FimgO&q=85&s=f48cfb65c6e6bb1f244c1e1e76877fbe" alt="Screenshot 2020 07 17 at 4.17.48 PM" width="636" height="742" data-path="images/direct/1595229165052-Screenshot-2020-07-17-at-4.17.48-PM.png" />

```json theme={null}
{
  "qrcodeType": "QRCodeToImage",
  "parseType": "array",
  "arraySeparator":",",
  "arrayMapping": [
        {
            "CheckCode":"QR0002"
        },{
            "CheckCode":"QR0003"
        },{
            "CheckCode":"QR0004",
 "DateInputFormat":"DD/MM/YYYY"
        },{
            "CheckCode":"QR0005",
"DateInputFormat":"hh:mm"
    },{
            "CheckCode":"QR0006"
    },{
            "CheckCode":"QR0007"
    }
    ]
}
```

Done. Please save and enable the insection template on the project.

Login to the APP, sync, add a new inspection and scan below QR Code to test on it.

<img src="https://mintcdn.com/snagr/oAfVEwXIu3-FimgO/images/direct/1595229786685-Screenshot-2020-07-20-at-3.23.02-PM.png?fit=max&auto=format&n=oAfVEwXIu3-FimgO&q=85&s=436f7025a2f8428601aaee4c9498861d" alt="Screenshot 2020 07 20 at 3.23.02 PM" width="424" height="434" data-path="images/direct/1595229786685-Screenshot-2020-07-20-at-3.23.02-PM.png" />

Let see how it works. 👀

<img src="https://mintlify.s3.us-west-1.amazonaws.com/snagr/images/direct/1595230426991-Jul-20-2020-15-30-50.gif" alt="helpjuice production/uploads/upload/image/3577/direct/1595230426991 Jul 20 2020 15 30 50" />
