🌎
Geoflow Docs
  • 🌎Welcome to Geoflow
  • 🔍Overview
    • Visitor Data Properties
  • ⭐Features
    • Geo Visibility
      • Define Multiple Conditions
      • Match All Conditions
      • Partially Match Condition
      • Reverse Condition Value
      • Custom Classes
    • Geo Form
      • Autofill Form Fields
      • Auto-Populate Select Fields
    • Geo Text
    • Geo Style
    • Geo Script
    • Script Extensions
      • Performance
      • Marketing Parameters
    • Optional Settings
      • Script Tag Data Attributes
      • Meta Tags
  • ⚙️Advanced
    • Code Snippets
    • Methods
      • run
      • getData
      • updateData
      • displayData
      • clearData
      • checkCondition
      • select
    • Callbacks
    • Events
    • REST API
      • Get Visitor IP
      • Get Visitor Data
      • Add Website
      • Delete Website
      • Update Website
      • List Websites
      • Get Website
  • 📄Legal
    • License Agreement
Powered by GitBook
  1. Features
  2. Geo Form

Autofill Form Fields

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

PreviousGeo FormNextAuto-Populate Select Fields

Last updated 1 year ago

Was this helpful?

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 .

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">
Visitor Data Properties table
⭐
Page cover image