QR Code Generator
6 minutes to readWith the QR Code Generator extension, you can create various types of QR codes based on your table data and save them directly in your tables. This extension allows you to customize QR codes with logos, colors, and styles to align with your brand or specific requirements.
The following steps guide you to add this extension from Caspio account level. Please note that you can browse and get extensions directly from our Marketplace.
Installing and Using QR Code Generator
- In the left panel of the main Caspio screen, click Integrations.
- On the Extensions tab, in the QR Code Generator section, click Add.
- After the completed installation, click Open.
- On the Agents screen, click Create agent.
- In the right panel that opens, enter the name of your agent.
- Select the profile for this agent. See Profile Settings.
- Under Trigger, select the data source and the type of event that will activate this agent.
- In the Outgoing data items section, specify your QR code content. Optionally, add a company logo. See Outgoing Data Items.
- In the Incoming data items section, specify where the generated QR code image and the generation status will be stored in your table.
- Click Create.
Profile Settings
Profile, or a configuration shared between agents, has the following options for QR Code Generator:
- QR code type: Select the type of QR code to generate. This setting determines the expected content value when configuring the Agents for this extension. The following types are available:
- Numeric: Contains numbers only.
- Alphanumeric: Contains numbers (0–9) and uppercase letters (A–Z).
- Byte: Contains any ASCII byte data, including special characters. ASCII is a standard encoding format used for text and symbols in computers and electronic devices.
- Kanji: Contains Japanese characters, including Hiragana, Katakana, or Kanji.
- UTF-8: Contains international characters and symbols, compatible with most modern applications and languages.
- URL: Links to a website. This is the default option.
Example: https://example.com - Wi-Fi: Contains Wi-Fi credentials for automatic connection. Use the following format:
encryption::SSID::password
Example: WPA2::MyNetwork::MyPassword - Email: Creates an email with a predefined subject and body. Use the following format:
email::subject::body
Example: info@example.com::Meeting Agenda::Please find the agenda below. - SMS: Sends a predefined text message. Use the following format:
phone_number::message
Example: +1234567890::Hello, this is a test message. - Geolocation: Provides latitude and longitude for map coordinates. Use the following format:
latitude::longitude
Example: 37.7749::-122.4194 - iCalendar: Contains event details for calendar applications. Use the following format, with a YYYYMMDDTHHMMSS notation for time:
summary::location::start_time::end_time
Example: Team Meeting::Conference Room::20250115T100000::20250115T110000
- Modules: Choose the grid size of the individual blocks in the QR code. Options range from 21×21 to 177×177. The more modules you set, the more characters will be available in the QR code content. If you want this setting to automatically adjust depending on the QR code content, select Auto.
Note: The specific combination of the two selections for QR code type and modules determines the character limit for the QR code content.
- Module style: Select the visual style of the QR code. A selection of squares, circles, and bars is available to give QR code images an individual look.
- Background color: Specify the background color in hexadecimal format (for example, #FFFFFF for white).
- Ink color: Specify the color of the modules in hexadecimal format (for example, #000000 for black).
- Generated image dimensions: Define the image size in pixels. The value applies equally to width and height since QR codes are square images. The following table presents the recommended sizes depending on your modules setting.
Modules (Range) Recommended Image Size 21 x 21 – 33 x 33 240 37 x 37 – 41 x 41 280 45 x 45 – 49 x 49 300 – 320 53 x 53 – 65 x 65 340 – 400 69 x 69 – 77 x 77 420 – 460 81 x 81 – 97 x 97 480 – 560 101 x 101 – 177 x 177 580 – 960 - Generated image format: Choose the image file format: JPEG, PNG, SVG, BMP, GIF, or TIFF.
Outgoing Data Items
- Content for QR code: Provide the content that the generated QR code will show upon scanning. You can use fields from your tables. The values allowed in this field are determined by the QR code type you selected when creating the profile for this extension agent. Some QR code types require multiple values, separated with double colons separators for multiple values. See Profile Settings.
- Logo or image: Select a File or Attachment data type field to embed a logo or image in the central part of the QR code. Supported formats: JPEG, PNG, SVG, BMP, GIF, TIFF.
Incoming Data Items
- Generated QR code: Stores the created QR code in your table as File or Attachment data type.
- Generation status: Provides the result of the QR code creation process. Possible status messages include:
- “Success.”
- Failure errors with a description, usually about the provided content not meeting the respective requirements of a particular QR code type or the character limit.
Resource Usage
This extension uses two types of resources:
- Credits: Each QR code uses 0.4 credits.
- Integrations calls: All requests use three integrations calls: for sending a request, receiving a generated QR code, and logging. The following extra calls might be utilized:
- If the File data type is used without a logo or image – 1 call.
- If the File data type is used with a logo or image – 2 calls.
- If the generation status is requested – 1 call.
Limitations and Requirements
- Error correction levels: QR codes include error correction levels to ensure they remain scannable even if partially damaged or obscured. The extension supports Level M (medium correction, 15% error recovery), and if a logo or image is used, Level H (high correction, 30% error recovery).
- Distinct colors: Background and ink colors must have sufficient contrast to ensure the QR code is easily scannable.
- Size: Larger QR codes with dense data require high-quality printing for readability.
- Character limit: The maximum number of characters a QR code can store depends on its type and module size. The following table shows the maximum characters allowed per each combination of the modules setting and QR code type.
Modules Numeric Alphanumeric Byte Kanji UTF-8 URL Wi-Fi Email SMS Geolocation iCalendar 21 x 21 17 10 7 4 14 10 10 10 10 10 10 25 x 25 34 20 14 8 26 20 20 20 20 20 20 29 x 29 58 35 24 15 42 35 35 35 35 35 35 33 x 33 82 50 34 21 62 50 50 50 50 50 50 37 x 37 106 64 44 27 84 64 64 64 64 64 64 41 x 41 139 84 58 36 106 84 84 84 84 84 84 45 x 45 154 93 64 39 122 93 93 93 93 93 93 49 x 49 202 122 84 52 152 122 122 122 122 122 122 53 x 53 235 143 98 60 180 143 143 143 143 143 143 57 x 57 288 174 119 74 213 174 174 174 174 174 174 61 x 61 331 200 137 85 251 200 200 200 200 200 200 65 x 65 374 227 155 96 287 227 227 227 227 227 227 69 x 69 427 259 177 109 331 259 259 259 259 259 259 73 x 73 468 283 194 120 362 283 283 283 283 283 283 77 x 77 530 321 220 136 412 321 321 321 321 321 321 81 x 81 602 365 250 154 450 365 365 365 365 365 365 85 x 85 674 408 280 173 504 408 408 408 408 408 408 89 x 89 746 452 310 191 560 452 452 452 452 452 452 93 x 93 813 493 338 208 624 493 493 493 493 493 493 97 x 97 919 557 382 235 666 557 557 557 557 557 557 101 x 101 969 587 403 248 711 587 587 587 587 587 587 105 x 105 1056 640 439 270 779 640 640 640 640 640 640 109 x 109 1108 672 461 284 857 672 672 672 672 672 672 113 x 113 1228 744 511 315 911 744 744 744 744 744 744 117 x 117 1286 779 535 330 997 779 779 779 779 779 779 121 x 121 1425 864 593 365 1059 864 864 864 864 864 864 125 x 125 1501 910 625 385 1125 910 910 910 910 910 910 129 x 129 1581 958 658 405 1190 958 958 958 958 958 958 133 x 133 1677 1016 698 430 1264 1016 1016 1016 1016 1016 1016 137 x 137 1782 1080 742 457 1370 1080 1080 1080 1080 1080 1080 141 x 141 1897 1150 790 486 1452 1150 1150 1150 1150 1150 1150 145 x 145 2022 1226 842 518 1538 1226 1226 1226 1226 1226 1226 149 x 149 2157 1307 898 553 1628 1307 1307 1307 1307 1307 1307 153 x 153 2301 1394 958 590 1722 1394 1394 1394 1394 1394 1394 157 x 157 2361 1431 983 605 1809 1431 1431 1431 1431 1431 1431 161 x 161 2524 1530 1051 647 1911 1530 1530 1530 1530 1530 1530 165 x 165 2625 1591 1093 673 1989 1591 1591 1591 1591 1591 1591 169 x 169 2735 1658 1139 701 2099 1658 1658 1658 1658 1658 1658 173 x 173 2927 1774 1219 750 2213 1774 1774 1774 1774 1774 1774 177 x 177 3057 1852 1273 784 2331 1852 1852 1852 1852 1852 1852