Prefill form fields

Fill in fields with information you already know, and optionally hide them from customers.

What is prefilling?

Prefilling gives a field a value before the customer enters anything.

You can use it to pass a customer’s name or email address into your form, or set a default answer.

There are two ways to prefill a field:

  • Default value: Set a starting value in the field’s settings.
  • URL parameters: Pass a value through the link a customer opens.

Set a default value

Use a default value when you want a field to start with the same answer for visitors.

  1. Open the page you want to edit.
  2. Select Form fields in the sidebar.
  3. Click the field you want to prefill.
  4. Open Additional settings.
  5. Enable Default value and enter the starting value.
  6. Click Save.

A default value is different from a placeholder. A placeholder is a hint inside an empty field. A default value fills in the field.

Prefill a field using a URL

Use URL parameters when the information varies between customers or links.

Each parameter pairs the field’s Reference with the value you want to enter.

Find the field’s reference

  1. Open your page and select Form fields.
  2. Click the field you want to prefill.
  3. Open Additional settings.
  4. Copy the Reference.

Use the reference exactly as it appears. The field’s label and reference may be different.

Add the value to your link

Add a question mark (?), the reference, an equals sign (=) and the value to your page URL.

For a field with the reference customer_name:

https://your-page-url?customer_name=Alex

Replace https://your-page-url with your actual page URL.

Prefill several fields

Separate each reference and value pair with an ampersand (&):

https://your-page-url?customer_name=Alex&customer_email=alex%40example.com

If the URL already contains a question mark and parameters, add the next parameter using & rather than another ?.

Format values for a URL

Encode spaces and special characters so they are passed correctly.

For example, “Alex Smith” becomes Alex%20Smith:

https://your-page-url?customer_name=Alex%20Smith

In the email example above, %40 represents the @ symbol.

Hide a prefilled field

Use Hide field when you want to pass information into the form without displaying the field to customers.

  1. Open the field’s settings.
  2. Open Additional settings.
  3. Enable Hide field.
  4. Click Save.
  5. Open your page with the prefilled value to check the result.

Hiding a field does not make its value private. Values passed through URL parameters remain visible in the link.

On this page