How to pre-fill wordpress forms using QR codes & URL parameters

AuthorAuthor
Integriti StudioDecember 4, 2025

Issue Background

Imagine this: Your team is out in the field distributing flyers with QR codes. Each QR code should lead to a contact form, who gave it to the lead. That way, —and every lead is attributed to the right person or campaign.

Example link behind the QR code: https://yoursite.com/offer/?salesperson=Alex%20Smith

When the prospect scans the code, the salesperson’s name appears in a hidden field. Neat, right?

How It Works

carry hidden data from the QR code directly into the form. ✅ That data a field on the form—visible or hidden. ✅ When the form is submitted, the lead is automatically assigned to the correct sales rep or campaign.

Resolution Steps

Step 1: Create a Hidden Form Field

➡ Choose your form plugin (Gravity Forms, WPForms, Ninja Forms). ➡ Add a field and name it or .

Step 2: Turn On Dynamic Population

➡ In the form settings, turn on . ➡ Set the parameter name as .

Step 3: Generate QR Codes with URLs

➡ Create one link per rep: https://yoursite.com/offer/?salesperson=Alex%20Smith ➡ Use any free QR code generator to turn these URLs into scannable QR codes.

Step 4 (Optional): Hide or Lock the Field

➡ If you don’t want users to change the value, use a Hidden Field or set it to read-only.

You can even use this dynamic value in or , like: “Thanks! Your request has been sent to Alex Smith.”

Final Outcome

  • ✅ Sales rep names filled in automatically.
  • ✅ No missed leads or manual errors.
  • ✅ Marketing attribution made easy and fully trackable.

Why This Works

  • Works across campaigns, QR codes, emails, social links.
  • Makes lead collection easier, faster, cleaner.
  • No need for custom dev or expensive plugins.

Need help improving your WordPress forms or custom workflows? We build clean, reliable, and growth-driven WordPress solutions —without breaking a sweat.

Let’s Talk

Share

Other Resources Post

Building Loyalty Programs With Shopify Apps 

Summary A well-structured Shopify loyalty program or loyalty system can turn first-time customers into lifelong brand advocates. With Shopify’s ecosystem, you can easily launch points-based rewards, referral programs, and VIP...

Using Shopify Flow To Automate Your Store

Summary Shopify Flow is a powerful automation tool designed for Shopify Plus merchants that helps Shopify businesses streamline everyday tasks without writing code. From managing inventory and inventory levels to...

Adding Metafields In Shopify For Better Product Customization

Summary Metafields in Shopify allow you to store and display custom information beyond Shopify’s default fields. Whether it’s product specs, size charts, care instructions, or downloadable guides, metafields let you...