How to pre-fill wordpress forms using QR codes & URL parameters
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
Shopify Services
Webflow Services