Fill a form field with something your site already knows about the visitor, such as their name from your email link or the product they're looking at. They check the value instead of typing it, so the form takes less effort, and the data you get matches what you already have. Here's the result:
Three common cases:
Known contacts from your own links. Someone clicks a link in your email or ad that carries their name or email address (
?email=…). Your signup or offer form opens with those fields filled, and the address is the one you already have.Feedback from logged-in customers. On an account page, your NPS or feedback form shows the customer's name and email address from your site's data, such as a JavaScript variable or the Data Layer. The answer lands on the right person, and they can still correct it.
Back-in-stock reminders. On a sold-out product page, the reminder form shows the product, size or color from the page's data. The visitor adds only their email address, and you know which item to write about.
Before you start, have these ready:
the Claspo script on your site
a widget with a form
💡 Autofill or Hidden fields? An autofilled field is visible, and the visitor can change it. A hidden field sends context the visitor never sees. Use Autofill when the visitor should see or confirm the value, and Hidden fields when they don't need to.
Turn on Autofill for a field
Autofill works in First name, Last name, Email, Phone, Text input and Text area fields.
Open your widget in the editor and select the field on the canvas, for example First name.
In the right panel, open the General tab, scroll down to Autofill and turn it on. The panel opens on Style each time you select a field, so switch to General again for every field.
Open the Source list and choose where the value comes from. The default is Static field.
In the box under Source, enter the value itself for Static field, or where to find it for any other source. For URL query parameter, type the parameter's name without
?or=, for examplefirst_name.Repeat steps 1–4 for each field you want filled. For example, select Email, turn on Autofill, choose URL query parameter and type
email.Click Save. The widget's page opens. If Claspo shows Fix errors, fix them before you test.
Which source to choose
Static field. The same value for every visitor, typed in the Static field box.
URL query parameter. A value carried in the page link, such as
?first_name=Annain a link from your email or ad. See how to use URL query parameters in Merge Tags.JavaScript variable. A value your site's code keeps on the page, such as the logged-in customer's name. See JavaScript variables in Merge Tags.
Local storage. A value your site saved in the visitor's browser storage. See local storage in Merge Tags.
Cookie. A value your site keeps in a cookie. See how to use a cookie in Merge Tags.
Data layer event. A value your site pushes to the Data Layer, such as the product on a product page. See how to set up Data Layer in Merge Tags. If you pass visitor data with Google Tag Manager, see how to use GTM to pass user data to Claspo.
What visitors see
The source has a value. The field opens with it filled in.
The source has no value. The field stays empty and shows its placeholder. The visitor fills it in as usual, and the form still works.
The value is wrong or out of date. The visitor can edit it like any other field.
The value came from a link. Claspo remembers the link's parameters for the rest of the visit, so the field stays filled on other pages too. A new link with parameters replaces them.
⚠️ Keep email addresses out of shared links. A URL can end up in browser history, analytics and forwarded messages. Put an email address in a link only when you send that link to the same person, for example in their own email.
Check it before publishing
On the widget's page, next to Publish widget, click Preview on my site (in a narrow window, it's an eye icon). The button appears once the Claspo script on your site has sent its first event.
Under Page URL where the script installed, enter your page's address with the parameters added, for example
https://www.example.com/?first_name=Anna&email=anna%40example.com. Keep Display immediately, ignoring the set triggering rules on, and click Open.Your page opens in a new tab. The First name field shows
Annaand the Email field showsanna@example.com.To see what a visitor without the link sees, open the page without the parameters in a private window. The fields are empty and show their placeholders.




