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.
- Open the page you want to edit.
- Select Form fields in the sidebar.
- Click the field you want to prefill.
- Open Additional settings.
- Enable Default value and enter the starting value.
- 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
- Open your page and select Form fields.
- Click the field you want to prefill.
- Open Additional settings.
- 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=AlexReplace 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.comIf 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%20SmithIn 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.
- Open the field’s settings.
- Open Additional settings.
- Enable Hide field.
- Click Save.
- 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.