> For the complete documentation index, see [llms.txt](https://developers.getgeoflow.com/geoflow-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.getgeoflow.com/geoflow-docs/feature/form/autofill-form-field.md).

# Autofill Form Fields

### 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

<table><thead><tr><th>Attribute Name</th><th width="268.3333333333333">Attribute Value</th><th>Which Page Element?</th></tr></thead><tbody><tr><td>data-geo-input</td><td>propertyName</td><td>&#x3C;input> or &#x3C;textarea></td></tr></tbody></table>

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](/geoflow-docs/overview/visitor-data-properties.md).

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

```html
<!-- 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">
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developers.getgeoflow.com/geoflow-docs/feature/form/autofill-form-field.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
