> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/convert/forms/forms-common-questions/forms-how-to-use-the-zip-code-field.md).

# Forms - How to Use the ZIP Code Field

#### SprintHub offers the creation of custom forms with a ZIP code field, optimizing the fill-in experience for Leads. With this feature, when the ZIP code is entered, the other data such as address, city, state, and country are automatically filled in, making the process faster and more efficient.

To do this, follow the steps below: &#x20;

1. **Go to the “Forms” function;**

&#x20;      Or just type it into “Find service” and it appears

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcFB1EL95MPk66RsZTQ8ATsXNLSse1duj05mFlxP2XQ6UZxjHpFUsOHU-wwjyPxCsJLTxp6il3vgAhION4N9Zr_dDPsnnDsKDP3wU3pKxxMZ5408VaEPMTChcEbwUGinmHABdkCKg?key=3JdZSJfHxiS8IiWMgaivpQ" alt=""><figcaption></figcaption></figure>

2. In the function **“Forms”**, you can select an existing form or create a new one. To edit an already created form, click on **'Edit'**. If you want to create a new form, just click on **'+ New'**. Then click on **'Open builder'**.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXflhGOq1ACWpgHX7WNPfkBeW_2rUxGdZp2PKkNOUjfuuxATjr8x04AmVjxxCuQVG3Bi7y-9j5qmKGUseBZTxGAMGxIdyjCUNNDZ2aE5p_f_QEaieNYdqEsmQ5XifRiP0dSGhydw?key=3JdZSJfHxiS8IiWMgaivpQ" alt=""><figcaption></figcaption></figure>

3. To add a ZIP code field to your form, just click and drag the desired field to the builder area;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeDrA1fi1tnsxUNQV53BxMLMSlbOaFRl9FEsi_AC6cGyMg_C8bhEdVj55mKVEBp2TMDk7BDzmr9y8eNNzMSJKbgYDf2qQA0Cyz-K369O9kI5Mju9qz7nBZjIv3_SXkifAZUEqzgcg?key=3JdZSJfHxiS8IiWMgaivpQ" alt=""><figcaption></figcaption></figure>

4. **Settings:**

{% embed url="<https://youtu.be/5GO0u8sur-U>" %}

**Settings**

* **Required:** The Lead can only submit the form when they fill out this field.
* **Lead field:** Select the Lead field where we will save what is filled in this form field.
* **Show after filling in?:** If the Lead returns to this form after filling it out, should we still show this field?
* **Show after X submissions:** How many times (x) does the Lead need to submit the form for this field to appear? Leave it blank or 0 for it to appear from the first time.
* **Show Dynamically:** Configure the conditions for this field to be shown or hidden, based on the value of other form fields.
* **Masks:** A mask makes a field be filled in with a specific pattern.

:gear:**Advanced**

* **Class - Custom Attributes:** HTML class attributes play an important role in the design and behavior of forms, especially when using **CSS and JavaScript to style and add functionality.**
* **Meta Pixel Attributes:** If Meta Pixel is configured, add attributes in this component to send events to the conversions API when one of the actions is triggered. Example: By adding the ‘click’ attribute, an event will be sent when this element is clicked.

**CONCLUSION:**

Using the ZIP code field in SprintHub forms is a practical and efficient solution to optimize the Lead experience and reduce data entry time. In addition to ensuring greater accuracy in address information, this feature contributes to smarter, faster forms with a higher conversion rate. By automating the filling of fields such as address, city, state, and country, your company offers a smoother and more professional journey, reinforcing care at every stage of contact with the Lead.


---

# 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://docs.sprinthub.com/en/topics/convert/forms/forms-common-questions/forms-how-to-use-the-zip-code-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.
