Skip to main content

How to pre-fill opt-in form fields with visitor information

Learn how to pre-fill opt-in form fields using URL parameters or Learnybox email variables.


This article explains how to pre-fill opt-in form fields, such as first name or email address, by adding parameters to your page URLs.

Use it when you want to personalize an opt-in form manually with a custom link, or automatically from a Learnybox email campaign or sequence. This can improve user experience and increase form completion rates.


You can use this feature in two ways:

  • Manually, to test or share a custom link with a specific contact.

  • Dynamically, using variables in email campaigns.

Step 1: Enable Pre-fill in Form Fields

  1. Navigate to Marketing Opt-in Forms

  2. Click the name of the form you wish to configure to open the form editor.

  3. Click the form field you wish to pre-fill and locate the Pre-fill option (Content tab).


    Examples:

    • For the First Name field, enter firstname as the parameter name.

    • For the Email field, enter emailaddress as the parameter name.

⚠️ The parameter names you define for each form field must exactly match the ones used in your URLs.

Step 2: Manually Pre-Fill Form Fields via a Custom URL

You can use this method to test your form or share a personalized link with a specific contact when you already know their details.

  • The First Name field will be pre-filled with John

  • The Email Address field will be pre-filled with john@gmail.com

You can paste this kind of URL into your browser address bar to test your form, or use it in a private one-to-one message.

Step 3: Dynamically Pre-Fill Fields via Email Campaigns

When sending an email through Learnybox, you can include dynamic variables in your link that automatically pull in each contact’s personal details.

  • Learnybox will automatically replace [[FIRST_NAME]] and [[EMAIL]] with each contact’s actual details at the time the email is sent.

  • When the recipient clicks the link, their form will be pre-filled with their own data.

This is ideal for email campaigns and automated sequences where you want to personalize the form experience for every contact.

Did this answer your question?