Page cover image

Autofill Form Fields

Autofilling a field in your form can save visitors time and improve the completion rate, conversions, and user experience.

How Does It Work?

Apply the Geo Input data attribute to a <input> or <textarea> element, using a value corresponding to a visitor data property to autofill that field.

How To Implement

Attribute Name
Attribute Value
Which Page Element?

data-geo-input

propertyName

<input> or <textarea>

Only one property name is supported in the value. The property name is case-sensitive and must match the 'Property Variable' noted in the Visitor Data Properties table.

If the <input> field is a checkbox or radio and if the visitor data property returns a boolean (true or false), then the <input> field will be checked/unchecked accordingly.

The Geo Form data attribute does not need to be added to the <form> element for the Geo Input data attribute to function.

Examples

<!-- This Text Field Will Be Prefilled with the Visitor's Country Name-->
<input type="text" data-geo-input="countryName">

<!-- This Checkbox Will Be Checked If the Visitor Is From the EU -->
<input type="checkbox" data-geo-input="isEU">

<!-- This URL Field Will Be Prefilled with the Visitor's Referer -->
<input type="url" data-geo-input="referer">

Last updated

Was this helpful?