> For the complete documentation index, see [llms.txt](https://docs.emobiq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/conversion/generateqrcode.md).

# generateQRCode

## Description

Creates an image for a type of matrix barcode (QR Code).

## Input / Parameter

| Name  | Description                                                                 | Input Type  | Default | Options | Required |
| ----- | --------------------------------------------------------------------------- | ----------- | ------- | ------- | -------- |
| type  | Not currently in use by the function.                                       | String/Text | -       | -       | No       |
| value | The value to be attached to the QR code.                                    | String/Text | -       | -       | Yes      |
| logo  | An image base64 or URL of an image to be appended to the QR Code.           | String/Text | -       | -       | No       |
| extra | The value to be included to the 'callback' as a system value under 'extra'. | Any         | -       | -       | No       |

## Output

N/A

## Callback

### callback

It is executed after the function completeled generating the matrix barcode (QR Code).

| Description                     | Output Type |
| ------------------------------- | ----------- |
| Returns the image base64 value. | String/Text |

## Video

Coming Soon.

## Example

### Steps

1. First we add 2 components to the page:

   1. A button to generate the QR code
   2. `imgQR`, an image placeholder for the QR code once generated.

   ![](/files/mjyXXOTCpBu3e4rwSzxa)
2. Select the "Generate QR Local" button and add these 2 functions to the event flow:

   ![](/files/tRMpxfYpCJlnSxsNKu0y)
3. For `generateQRCode` function, the parameters are:

   ![](/files/rWcN2iH8DkCGWZRVw1R5)
4. For the `setComponentFunction`, we set the "component" value to "imgQR", the image placeholder created in step 1.

   ![](/files/eqhs6GEDhsaoZJbSxju2)

   For 'value', we add a subflow with the function "objectAttr" like so:

   ![](/files/10zYtambIWTd8BJl8xwy)

### Result

![](/files/3ZWk6iKAIxcD0RdAk6qk)

## Links


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.emobiq.com/emobiq-client/006-actions-and-visual-logic/action-reference/cordova/conversion/generateqrcode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
