Barcode

"scan": {
    "type": "string",
    "$capture": {
    "as": "qr-code",
    "format": "text",
    "simulate": {
        "code": "0144444444444444AAA-AA"
    },
    "qrcodeMapping": [
        {
        "from": "$.code",
        "template": "{values.ref}",
        "to": "field1",
        "tableData": {
            "id": 0
        }
        },
        {
        "from": "$.code",
        "to": "product",
        "template": "{values.ref}"
        }
    ]
    },
    "$display": {
    "as": "hidden"
    },
    "title": "Scan code"
}