Contact Sales
Contact Login
Leadgen App
  • Pricing
    • Subscriptions
    • Enterprise
  • Templates
    • Lead Capture Forms
    • Data Collection Forms
    • Contact Forms
    • Conditional Logic Forms
    • Calculator Forms
    • Lead Qualification Forms
    • Request Forms
  • Support
    • Help Center
    • Security
    • FAQ
    • Product Updates
  • Online Form Builder
    • Features
      • Multi Step Form Builder
      • Conditional Logic Form Builder
      • Form Fields
      • Partial Leads
      • Form Calculations/Scoring
      • AB Testing & Conversion Optimization
      • LeadProof
      • Lead Verification
        • Trustedform Certificates Integration
        • Contact State
    • Demo
    • Integrations
      • Google Analytics
      • Google Cloud
      • Event Tracking
      • Zapier
      • Webhooks
      • Trustedform Certificates Integration
      • Contact State
    • Customer Experiences
  • Free Trial
  • Watch Demo
Select Page

Suggestions and Feedback

  • Submit New Feature Request

Build Forms

  • How to Capture UTM Parameters for Accurate Campaign Tracking
  • What Are The Steps To Create A LeadGen Form?
  • How To Add Google ReCAPTCHA On Your LeadGen Forms?
  • How Can I Centralize The Question Title And Description Text In Forms?
  • How Do I Start Creating Forms In LeadGen App?
  • How To Create A Multi-Step Form?
  • How To Ask For Date Of Birth In A LeadGen Form?
  • How Can I Add Images And Logos To My Forms?
  • What Can I Do To Increase Lead Quality And Avoid Spam Enquiries?
  • How Can I Add A Summary Step For Users To Review Their Answers Before Submitting The Form?
  • How Can I Randomize The Order Of Options In Multiple Choice Questions?
  • How Can I Use Google Powered Address Autocomplete In LeadGen Forms?
  • What is Auto Navigation in multi step forms?
  • Blocking Custom Email Formats: A Simple Yet Effective Way to Manage Your Inbox

Lead Notifications

  • How Can I Remove LeadGen App Branding In Email Notifications?
  • How Can I Set-Up Email Notifications For New Leads?
  • What Can I Do If I Don’t Receive Email Notifications?
  • My Lead Notification Email Land In Spam Inbox. How Can I Resolve This?
  • My Emails Land In Updates, Promotion Or Other Gmail Tabs. How Can I Get Them To My Inbox?
  • How Does The Reply-To Header Setting In Email Notifications Work?

Conversion Optimization/Analytics

  • What Are Partial Lead Entries?
  • What Metrics Can I See To Analyze My Form Results?
  • How Can I A/B Test My Form Variants?
  • Form Events With Script Execution In LeadGen Forms

Form Design

  • How To Customize Multiple Choice Questions?
  • How Can I Use Themes To Save My Form Branding?
  • How Can I Customize The Continue And Submit Buttons?
  • Form Design Guide: How Can I Change The Design Of LeadGen Forms?
  • How can I change the form background color?
  • How Can I Make The Form Background Transparent?
  • How Can I Change The Form Width?
  • How Can I Change The Form Height?
  • How Can I Change The Form Internal Spacing/Padding?
  • Can All Form Steps To Have A Consistent Height?
  • How Can I Customize The Form Progress Bar?
  • How Can I Change The Font Size/Colors?
  • How Can I Change The Border Radius Of Elements In The Form (Form Design, Buttons, Etc.)?
  • How Can I Upload Images And Add Textboxes To Forms?
  • How Can I Add Image/Icons To Choice Questions?
  • How can I use radio buttons in questions?
  • What is the form fade-in effect?
  • How Can I Change The Background Color Of My Form?
  • How To Change The Dropdown Text Color?
  • Create A Form Ending For Unqualified Leads

FAQ

  • Frequently asked questions

Lead Management

  • How can I export my leads into a spreadsheet?
  • Where can I find my leads?
  • How can I delete leads?
  • Partial Lead Submissions

LeadProof

  • How can I use LeadProof on my website?

My Account

  • How can I update my bank/card details?

Templates

  • Can I edit a form template?

GDPR Compliance

  • Do you provide a GDPR Data Processing Agreement?
  • How can I use the GDPR Question Type?

Embed Forms

  • How can I fix forms that are not loading?
  • How to embed forms in Wix
  • How to embed forms into WordPress (Divi Theme)
  • How to embed forms into Leadpages
  • How to embed forms in Unbounce
  • How to embed forms in Webflow
  • How to embed forms in WordPress (Gutenberg Editor)
  • My forms load slowly. How can I improve load time?
  • The form doesn’t look good on mobile. How can I improve the responsiveness?
  • How can I change the sizing of the form?
  • How to embed forms in Squarespace
  • How can I embed LeadGen forms (Full Guide)
  • How does the Geolocation feature work?
  • How can I embed LeadGen forms in Clickfunnels?

Thank-You Screen

  • Answer Piping
  • Source URL vs Source Domain – Visitor-Based Form Endings
  • How to connect forms to Thank-you pages/messages
  • Multiple Endings to a Form
  • How can I post form data to the Thank-you page URL?
  • How can I append form data to the Thank-You URL?

Services

  • Do you offer Form Design Services?

Conditional Forms

  • How to create conditional logic forms?

Calculator Forms

  • How to build a calculator form?

Integrations

  • Integration guide: Connect LeadGen App via Zapier
  • Integrations Guide: How to integrate LeadGen via Webhooks
  • What type of integrations does LeadGen App support?
  • Google Analytics Integration Guide
  • Is it possible to track LeadGen conversions inside Unbounce?
  • Contact State Integration guide
  • Trustedform Integration

Landing Page Builder

  • Editing Your Landing Page
  • Landing Page Prompts

Advanced Guides

  • How To Use URL Parameters For Form Prefilling
View Categories
  • Home
  • Help Center
  • Advanced Guides
  • How To Use URL Parameters For Form Prefilling

How To Use URL Parameters For Form Prefilling

Form Prefilling & Personalization – User Guide

 

Introduction

LeadGen Forms offers powerful URL-based prefilling and personalisation features that allow you to: – Pre-fill form fields with data from URL parameters – Personalize the user experience with dynamic greetings and messages – Hide fields when values are provided via URL – Capture hidden data from URL parameters without showing fields to users

These features are perfect for:

– Email campaigns (pre-fill subscriber information)

– Ad campaigns (track source and pre-fill known data)

– Personalized landing pages (greet users by name)

– Multi-step funnels (pass data between pages)

 

Form Prefilling from URL

 

What is Form Prefilling?

Form prefilling automatically fills in form fields based on URL parameters. This creates a better user experience by reducing the amount of typing required.

 

How It Works

Step 1: Set the Field Name

Open your form in the editor. Choose any question you want to apply this feature to. Now scroll down to Advanced Settings and find the Field Name (used for URL parameters).

Enter a unique name (e.g., first_name, email, phone)

Field name setting

Step 2: Add URL Parameters

Use the field name in your URL with the value you want to pre fill. 

https://yoursite.com/form?first_name=John&email=john@example.com

Step 3: Test Your Form

Open the URL in your browser and watch the fields auto-populate! 

 

Setting Up Field Names

Best Practices for Field Names:

  • Use lowercase letters
  • Use underscores instead of spaces (first_name, not first name)
  •  Keep them short and descriptive
  •  Make them unique within your form
  • Avoid special characters (except underscore)
  •  Don’t use spaces

Examples:

Good Field Names:
– first_name
– email_address
– phone_number
– company_name
– job_title

Bad Field Names:
– First Name (has space)
– email@address (special character)
– Phone# (special character)

Personalising Forms with Hidden Fields

What are hidden fields?

Hidden fields capture data from URL parameters without displaying input fields to users. They’re perfect for:

– Tracking campaign sources

– Storing referral codes

– Capturing user IDs

– Personalising content with Answer Piping

Setting Up Hidden Fields

Step 1: Create Hidden Fields

  1. In your form editor, scroll all the way down to the Hidden Fields section.
  2. Click “Add Hidden Field”
  3. Give it a unique name (e.g., name, utm_source, campaign_id)
  4. Enable “Capture from URL” if you want to capture the value from URL parameters automatically

 

Hidden field panels

Real-World Example: Personalized Email Campaign

Scenario: You’re sending an email campaign to your subscribers.

Setup:

1. Create hidden fields: first_name, email, campaign_source

2. Add to your welcome message: “Hi {{first_name}}, thanks for your interest!”

3. Build your email links:

https://yoursite.com/form?first_name=Emma&email=emma@example.com&campaign_source=newsletter_jan_2024

Result: – User sees: “Hi Emma, thanks for your interest!” – Form captures: email and campaign_source in the background – User only fills in missing information

 

Hiding Form Fields

What is Field Hiding?

Instead of showing pre-filled fields to users, you can completely hide questions when values are provided via URL. This creates a cleaner, shorter form experience.

 

Setting Up Field Hiding

Step 1: Set the URL Parameter Behaviour

Open your form in the editor and click on the question you want to configure.

Now scroll to Advanced Settings and find the URL Parameter Behavior dropdown. Now select your preferred option:

  • Prefill from URL (default)—Shows the field with a pre-filled value
  • Hide When URL Matches—Hides the field when a URL parameter is provided

 

Step 2: Set the Field Name

Make sure the question has a Field Name set (as described in the Form Prefilling section).

Step 3: Test with URL Parameters

Example with “Prefill from URL”:
https://yoursite.com/form?email=john@example.com
Result: Email field is visible and pre-filled with “john@example.com”

Example with “Hide When URL Matches”:
https://yoursite.com/form?email=john@example.com
Result: Email field is completely hidden, value is captured in the background

When to Use Each Option

Use “Prefill from URL” when:

  • You want users to see and verify the pre-filled data
  • The data might be incorrect, and users should be able to change it
  • You’re pre-filling optional information
  • Transparency is important (users should see what data is being submitted)

 

Use “Hide When URL Matches” when:

  • You’re certain the data is correct
  • You want to shorten the form
  • The data is for tracking purposes (campaign source, UTM parameters)
  • You’re passing user IDs or other system data
  • You want to create a more personalized experience

 

Important Notes on Hiding

  • Hidden fields still submit their values with the form
  • Required validation still applies – field won’t hide if URL value is empty
  • Users can’t edit hidden field values
  • Only hide fields when you’re confident the data is correct

 

Supported Question Types

Fully Supported Question Types

These question types work with both prefilling and hiding:

Text-Based Questions

  • Short Text – Plain text input
  • ?short_text=Hello World
  • First Name – First name field
  • ?first_name=John
  • Last Name – Last name field
  • ?last_name=Smith
  • Paragraph Text – Multi-line text
  • ?comments=This is a long comment with multiple lines
  • Email Address – Email field
  • ?email=john@example.com
  • URL – Website URL field
  • ?website=https://example.com

 

Number Questions

  • Number – Numeric input
  • ?quantity=5
    • Range/Scale – Slider or Likert scale
    • ?satisfaction=4
    • Range/Scale – Smiley’s Skin

    ?smiley=Very Unsatisfied or Your custom value

    ?smiley=Unsatisfied or Your custom value

    ?smiley=Neutral or Your custom value

    ?smiley=Satisfied or Your custom value

    ?smiley=Very Satisfied or Your custom value

    Note: For smiley skin, the default values are Very Unsatisfied, Unsatisfied, Neutral, Satisfied, and Very Satisfied.

    You can either use those or add your custom values for smileys by enabling the set custom text for smileys toggle.

     

Date Questions

  • Date – Date picker (all skins)
  • Formats supported:
    ?date=2024-12-31          (YYYY-MM-DD)

 

Selection Questions

  • Single Choice – Radio buttons, dropdowns, buttons, icons, images
  • ?color=Red
    Note: Value must match the choice label exactly
  • Multiple Choice – Checkboxes, multi-select
  • ?colors=Red,Blue,Green
    Note: Separate multiple values with commas

 

Phone Number

  • Phone Number – Phone input with country code
  • ?phone=+14155551234
    Note: Include country code for best results

 

Yes/No Questions

  • Yes/No – Toggle or switch
  • ?subscribe=yes
    ?subscribe=no

    Accepted values:
    For “Yes”: yes, true, 1
    For “No”: no, false, 0

 

 

Address Questions

  • Address – Multi-field address input
  • ?address_line_1=123 Main Street
    ?address_line_2=Apt 4B
    ?address_city=San Francisco
    ?address_state=California
    ?address_country=United States
    ?address_post_code=94102

  • Notes:
  • – In the example above, the address serves as the field name. Therefore, the fields should follow this format: {address}_line_1. The first part can be any string you define, but you must adhere to the specified format. E.g, my_address_state=California&my_address_country=United States
  • – Field names are based on your address field configuration
    – Country matching is case-insensitive (India, India, INDIA all work)
    – To hide the address question, ALL enabled fields must have values

 

GDPR/Consent

  • GDPR – Consent checkboxes
  • ?gdpr=Email Updates,SMS Notifications

    Notes:
    – Match checkbox labels exactly (case-insensitive)
    – Separate multiple items with commas
    – Prefills: Checks the items you specify
    – Hiding: Only hides if ALL required items are provided

 

Not Supported Question Types

These question types do NOT support URL prefilling:

  • File Upload – Security reasons (files can’t be uploaded via URL)

 

 

Examples & Use Cases

Example 1: Email Marketing Campaign

Goal: Pre-fill subscriber information from your email list

Setup:

Hidden Fields:
– subscriber_id
– email

Form Questions:
– first_name (Prefill from URL)
– company (Prefill from URL)
– phone (Prefill from URL)
– message (NOT prefilled)

Welcome Message:
“Hi {{first_name}}, tell us more about your needs!”

Email Link:

https://yourform.com/contact?subscriber_id=12345&email=sarah@company.com&first_name=Sarah&company=Acme Corp&phone=555-0123

User Experience:

1. Opens form from email

2. Sees: “Hi Sarah, tell us more about your needs!”

3. Form shows first name, company, and phone already filled

4. Only needs to type their message 5. Submits form quickly

What You Capture: – subscriber_id: 12345 (hidden) – email: sarah@company.com (hidden) – first_name: Sarah (pre-filled, editable) – company: Acme Corp (pre-filled, editable) – phone: 555-0123 (pre-filled, editable) – message: (user typed)

Example 2: Multi-Step Funnel

Goal: Pass data from the landing page to the form on another page

Setup:

Page 1 (Landing Page):

<a href=“https://yourform.com/signup?industry=Healthcare&company_size=50-100&interest=Software”>
  Get Started
</a>

Page 2 (Form):

Hidden Fields:
– industry (captured from URL)
– company_size (captured from URL)
– interest (captured from URL)

Form Questions:
– first_name
– email
– phone
– message

Welcome Message:
“We help {{industry}} companies like yours succeed!”

User Experience:

1. Lands on page, clicks “Get Started”

2. Sees form with: “We help Healthcare companies like yours succeed!”

3. Fills in personal information

4. Submits

What You Capture: – All the context from the landing page (industry, company_size, interest) – Personal contact information from the form

What are your feelings?
Still stuck? How can we help?

How can we help?

Updated on December 4, 2025

Powered by BetterDocs

Table of Contents
  • Form Prefilling & Personalization - User Guide
  • Introduction
  • Form Prefilling from URL
    • What is Form Prefilling?
    • How It Works
    • Setting Up Field Names
      • Best Practices for Field Names:
      • Examples:
  • Personalising Forms with Hidden Fields
    • What are hidden fields?
    • Setting Up Hidden Fields
    • Real-World Example: Personalized Email Campaign
  • Hiding Form Fields
    • What is Field Hiding?
    • Setting Up Field Hiding
    • When to Use Each Option
      • Use “Prefill from URL” when:
      • Use “Hide When URL Matches” when:
    • Important Notes on Hiding
  • Supported Question Types
    • Fully Supported Question Types
      • Text-Based Questions
      • Number Questions
      • Date Questions
      • Selection Questions
      • Phone Number
      • Yes/No Questions
      • Address Questions
      • GDPR/Consent
    • Not Supported Question Types
  • Examples & Use Cases
    • Example 1: Email Marketing Campaign
    • Example 2: Multi-Step Funnel
LeadGen App
🟢 System Status
The Platform
  • Form Builder
  • Multi Step Form Builder
  • Conditional Logic Form Builder
  • Pricing
  • TrustedForm
  • Contact State
  • A/B Testing
  • Features
  • Embed Forms
Industries
  • Marketing Agencies
  • Real Estate
  • Mortgage
  • Insurance
  • Car Detailing
Form Types
  • Types of Forms
  • Multi Step Forms
  • Application Forms
  • Registration Forms
  • Request Forms
  • Contact Forms
  • Data Collection Forms
  • Conditional Forms
  • Landing Page Forms
  • Consent Forms
Resources
  • Help Center
  • FAQ
  • Blog
  • Templates
  • Form Fields
  • Security
  • Tools
  • Blog Quality Policy
About
  • Contact Us
  • Customer Stories
  • About
  • Product News
  • Advertise with Us

© Copyright by CLIQ ONLINE PTY LTD hello@leadgenapp.io

  • Cookies
  • Terms
  • Privacy