> For the complete documentation index, see [llms.txt](https://attr.sygnal.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://attr.sygnal.com/sa5-forms/form-ip.md).

# Form IP Info ❺

Capture the current user's IP and geo-location data as part of your form submits.

Captures the sender’s IP and geolocation info and appends it to the tagged form as hidden fields.

## Demonstration <a href="#demo---webflow-forms-w-ip-info" id="demo---webflow-forms-w-ip-info"></a>

{% embed url="<https://webflow-forms-demo.webflow.io/special/ip-info>" %}
Demonstration
{% endembed %}

## Use cases

* Capture general geographic info, such as country and city.
* Store IP ( where permitted, and part of your privacy policy ), as a verification of the send. Required by some services like Mailchimp, for loading external lists.&#x20;

## Getting Started <a href="#getting-started-nocode" id="getting-started-nocode"></a>

* First, **add the library** as detailed in [Quick Start](/sa5-forms/quick-start.md).&#x20;
* **Tag your Form Block.** Place this Place this custom attribute on your form block element:&#x20;

`[wfu-form-ipinfo]`

### Handler Options&#x20;

Currently the only supported handler is **GeoJS**.

{% embed url="<https://www.geojs.io/>" %}

### Sample Data

This is an example of the data appended to the form.

The `name` and `value` fields come through with your form content. \
Only non-blank results will be sent.&#x20;

```html
<input type="hidden" name="ip-ip" value="125.236.192.7">
<input type="hidden" name="ip-continent_code" value="OC">
<input type="hidden" name="ip-country" value="New Zealand">
<input type="hidden" name="ip-country-code" value="undefined">
<input type="hidden" name="ip-region" value="Auckland">
<input type="hidden" name="ip-city" value="Auckland">
<input type="hidden" name="ip-timezone" value="Pacific/Auckland">
<input type="hidden" name="ip-latitude" value="-36.8506">
<input type="hidden" name="ip-longitude" value="174.7679">
```

## Future

* Separate this data lib from the data-binding lib, and allow it to be used independently.&#x20;


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://attr.sygnal.com/sa5-forms/form-ip.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
