🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms QR Code Generator: Complete Setup Guide & Documentation

Updated 8 min read Gravity Forms PDF & Documents
On this page
  1. Video walkthrough
  2. Creating QR Code Feeds & Field Mapping
  3. Step 1: Add a New QR Code Feed
  4. Step 2: Map Form Fields into the QR Code Payload
  5. Step 3: Constructing Dynamic URLs with Query Parameters
  6. Step 4: Customizing QR Code Dimensions & Captions
  7. Step 5: Conditional Logic for Selective Generation
  8. Embedding QR Codes in Confirmations & Emails
  9. Troubleshooting & Frequently Asked Questions
  10. Related Resources & Live Demonstration
  11. Scan QR Codes into a Field (Version 1.1.0)
  12. Where QR Images Are Stored
  13. Scan barcodes into a field (version 1.2.0)
  14. Set it up
  15. What visitors see
  16. How misreads are handled
  17. Browsers and privacy
  18. Limits

Video walkthrough

Generate a QR Code from Every Gravity Forms Entry (Tickets & Check-ins)
A short walkthrough: install the add-on, add a QR code feed, choose the answers that go inside the code, then show the QR ticket in the confirmation right after submit. Watch on YouTube

The Gravity Forms QR Code Generator Add-on allows WordPress site administrators to dynamically generate, customize, and embed high-resolution QR codes from form entry data. Whether encoding website URLs, personalized vCard contact files, event ticket tokens, or WiFi credentials, this add-on creates scannable image assets in real time on your server—allowing you to display them on confirmation screens, dispatch them via notification emails, and insert them into PDF receipts with the QR merge tag.

System Requirements & Prerequisites

  • WordPress: Version 5.8 or higher
  • Gravity Forms: Version 2.5 or higher (Pro, Elite, or Basic)
  • PHP: Version 7.4, 8.0, 8.1, 8.2, or 8.3 with GD or Imagick extension enabled
  • Add-on License: Active Gravity Forms QR Code Generator license key for automatic updates

Creating QR Code Feeds & Field Mapping

The add-on operates on a flexible multi-feed architecture, allowing you to generate multiple distinct QR codes from a single form (for example, one QR code for a vCard contact pass and another for a payment transaction URL). Follow these steps to configure your feed:

Step 1: Add a New QR Code Feed

In your WordPress admin dashboard, navigate to Forms, hover over your targeted form, and click Settings > QR Code. Click the Add New button to create a new generation feed.

Add New QR Code Feed in Gravity Forms
Accessing Form Settings > QR Code and creating a new feed.

Step 2: Map Form Fields into the QR Code Payload

Enter a descriptive Feed Name (e.g. Attendee Ticket QR). In the QR Code Fields mapping table, pair form fields with specific key identifiers. Click the plus (+) icon to add additional parameters.

Mapping form fields to QR code parameters
Mapping form inputs to custom QR code payload keys.

Pro Tip on Key Naming: If a field’s Key is set to {None}, the key label will not be prepended to the scanned output, and only the raw field value will be encoded into the QR code matrix.

Using None key for raw value encoding
Setting Key as {None} to omit prefix labels from scanned payloads.

Step 3: Constructing Dynamic URLs with Query Parameters

To generate a scannable hyperlink that opens a specific website with entry-specific tracking parameters, set the first key as {url} with your base URL as its value. Any subsequent rows added to the mapping table will automatically append as structured query string parameters (such as ?user_id=10&ticket=VIP).

Configuring dynamic URL query parameters in QR feed
Using the {url} key to auto-construct scannable tracking links.

Step 4: Customizing QR Code Dimensions & Captions

Define the rendered image Size (e.g. 300 for 300×300 pixels, or 500 for high-resolution print) and specify an optional Label displayed beneath or alongside the QR graphic.

Setting QR code size and label
Setting custom pixel dimensions and text labels.

Step 5: Conditional Logic for Selective Generation

Use standard Gravity Forms Conditional Logic to control when the QR code feed executes. For example, only generate a VIP QR pass if the user selects the “VIP Registration” ticket tier, or if a payment status equals “Approved”.

Enabling conditional logic on QR code feed
Configuring conditional execution rules for targeted QR delivery.

Embedding QR Codes in Confirmations & Emails

The add-on automatically provides convenient merge tags to place your generated QR codes anywhere throughout your Gravity Forms notifications, confirmation screens, or PDF documents.

QR Code merge tags dropdown
Accessing QR Code merge tags from the Gravity Forms merge tag selector.

The add-on registers three primary merge tag variations:

  • {QR-code-id-FEED_ID}: Outputs a complete HTML <img> tag rendering the generated QR code graphic.
  • {QR-code-url-id-FEED_ID}: Returns the direct public image URL, ideal for custom CSS styling or background images.
  • {QR-code-file-id-FEED_ID}: Returns the server filesystem path for advanced server-side scripting or PDF compilation.
Placing QR merge tag in notification message
Inserting the QR merge tag into an administrative email template.

To locate your specific Feed ID number, inspect the ID column in the QR Code feeds list under Form Settings > QR Code.

Locating QR code feed ID in settings table
Finding the Feed ID number (e.g. ID 18) to construct {QR-code-id-18}.

Upon submitting the form, your user or administrator receives their email notification containing the freshly generated, scannable QR graphic.

Received email with embedded QR code
Received email confirmation displaying the scannable QR ticket.

Troubleshooting & Frequently Asked Questions

Q: Why does the QR merge tag render as literal text instead of an image?

A: Ensure the Feed ID number in your merge tag matches the exact ID listed in your form’s QR Code settings table (for example, {QR-code-id-18} for Feed ID 18). Also verify that any conditional logic attached to the feed is satisfied during form submission.

Q: Can I encode WiFi network credentials or digital business cards (vCards)?

A: Yes! You can configure your field mapping to output standard vCard syntax (BEGIN:VCARD...END:VCARD) or WiFi connection strings (WIFI:T:WPA;S:NetworkName;P:Password;;) by mapping your form fields with custom keys.

Q: Are generated QR images saved on my server indefinitely?

A: Yes. Generated PNG files are safely written into a dedicated directory within wp-content/uploads/ and remain permanently accessible for future scans, email re-sends, or admin audit inspections.

Q: Does this add-on rely on an external QR API?

A: No. QR images are created on your own server by a QR code library bundled with the plugin and saved in your uploads folder. The plugin does not call an external QR service to create them.

Scan QR Codes into a Field (Version 1.1.0)

From version 1.1.0 visitors can fill a Single Line Text field by scanning a QR code with the camera of their phone or computer, or from a photo. Use it for event check-in, ticket and voucher validation, equipment and asset forms, or any form where people would otherwise type a long code.

  1. Open the form in the form editor and click the Single Line Text field that should receive the code.
  2. Open the Advanced tab and tick Show a “Scan QR code” button.
  3. Optional: tick Submit the form after a successful scan for a one-tap check-in.
  4. Update the form.
Gravity Forms field settings, Advanced tab: Show a Scan QR code button and Submit the form after a successful scan
The scan setting in the Advanced tab of a Single Line Text field.

On the form, a Scan QR code button appears under the field. It opens the camera (the back camera on phones). As soon as a QR code is recognised, its text is written into the field and the camera is turned off; the field then behaves as if the value had been typed. Visitors can still type or correct the value.

Scan a QR code window with the camera picture of a QR code
The scan window: point the camera at the QR code.
Check-in form with the ticket code filled by a QR scan
The field is filled as soon as the code is read.

If the browser has no camera or camera access is blocked, the dialog says so and offers Use a photo instead: visitors pick or take a picture of the QR code and it is read in the same way. Scanning happens entirely in the visitor’s browser; no image is uploaded or sent anywhere.

Scan window on a phone without camera access, offering Use a photo instead
Without camera access, a photo of the code works too.
  • Camera access needs HTTPS. Browsers only allow the camera on secure (https://) pages.
  • Browsers: current Chrome, Edge, Safari and Firefox on phones and computers. Browsers with a built-in QR reader use it; the others use the reader that ships with the add-on.
  • Several fields: each field with the setting gets its own button.

Where QR Images Are Stored

QR images created by the feeds are saved in wp-content/uploads/qr_code_img/ of your site (on multisite, in the uploads folder of each site) with unique, hard-to-guess file names, and the folder cannot be listed. Images created by earlier versions stay where they are, and links to them in entries, notifications and emails keep working.

QR Code box on the Gravity Forms entry screen with the image, file name, URL and download button
QR images are stored in the uploads folder with unique names.

Scan barcodes into a field (version 1.2.0)

From version 1.2.0 the scan button of a Single Line Text field can read barcodes as well as QR codes.

Set it up

  1. Open the form in the form editor and select the Single Line Text field.
  2. On the Advanced tab, tick Show a “Scan QR code” button.
  3. Under Allowed formats, tick the codes this field should read, or click a preset:
    • QR only: QR Code (the default, and what every field made before 1.2.0 uses).
    • Retail (EAN / UPC): EAN-13, EAN-8, UPC-A, UPC-E.
    • All 1D barcodes: EAN-13, EAN-8, UPC-A, UPC-E, Code 128, Code 39, ITF.
    • All formats: all of the above plus QR Code and PDF417.
  4. Optional: tick Only accept values that match an allowed format (checked again on submit). A typed or pasted value must then be a valid code of one of the allowed formats, for example an EAN-13 with the right check digit. QR Code and PDF417 accept any text.
  5. Save the form.
Gravity Forms field settings, Advanced tab: Allowed formats with presets QR only, Retail, All 1D barcodes, All formats
Allowed formats and presets in the Advanced tab of a Single Line Text field.

What visitors see

When a field allows a format other than QR, its button reads Scan barcode. The scan window shows a wide aiming frame for 1D barcodes. Visitors can use the camera or Use a photo instead.

Scan a code window over a sample form, with a Use a photo instead button
The scan window for barcode fields.

As soon as a code is read, the field is filled and the usual change events fire, so conditional logic and calculations react. If “Submit the form after a successful scan” is on, the form is submitted.

Stock check-in form with the product barcode filled by a scan
The field is filled as soon as a valid code is read.

How misreads are handled

  • Codes in a format the field does not allow are ignored.
  • EAN-13, EAN-8, UPC-A and UPC-E reads must pass the check digit.
  • Code 39 and ITF have no check digit: a camera read is only used when two frames in a row agree.
  • A UPC-A code is filled as a 13-digit EAN-13 (with a leading 0) when the field allows EAN-13 but not UPC-A, and the other way round.

Browsers and privacy

The plugin uses the browser’s built-in barcode reader when it supports every format the field allows. Otherwise it uses a barcode reader bundled with the plugin, which is loaded only on forms that allow a format other than QR. No external service is called and the image never leaves the visitor’s device. Camera scanning needs HTTPS (or localhost); without camera access, a photo works.

Limits

  • One code per scan; the first valid code found is used.
  • Code 39 is read in its standard character set (A-Z, 0-9, space and – . $ / + %).
  • Small, blurred or curved barcodes may need a closer, steadier photo.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr