> For the complete documentation index, see [llms.txt](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/checkout-blocks/blocks/address-validation.md).

# Address Validation

1. **Description:**

   The Address Validation block ensures that customers enter valid shipping addresses during checkout. This helps prevent delivery issues, reduces shipping errors, and enhances customer experience. It also includes autocompletion features to speed up the checkout process by suggesting accurate address entries.

   **How to Use:**

   * Create a New Block

     <figure><img src="/files/m3FWhvISUtBpb354WwKb" alt=""><figcaption></figcaption></figure>
   * In the app, navigate to the Blocks section.
   * Create a new Address Validation Options block.
   * The system will generate a unique Block ID for this block.<br>

     <figure><img src="/files/e3XO51DksRPzmtgVb1Qz" alt=""><figcaption></figcaption></figure>

   **How to Enable:**

   * Go to the Blocks section in the app settings. Copy the created checkout Upsell block to generated Block ID.<br>

     <figure><img src="/files/gH7gLeNmx3tcuRRvMs2a" alt=""><figcaption></figcaption></figure>
   * Go into the store customizer<br>

     <figure><img src="/files/E2gBZqfOCit9Uw68d3Rs" alt=""><figcaption></figcaption></figure>
   * Then you need to "add app block" and search extension "Checkout fields, Gift, and Address validation" and add it. Click to added extension block and enter the Block ID in the block settings and save the configuration.. **Check Screenshot**

   <figure><img src="/files/yakxhzQXC0uaYCu1z2S5" alt=""><figcaption></figcaption></figure>

   <figure><img src="/files/B6vwHJG4Fuk9da4ms1OJ" alt=""><figcaption></figcaption></figure>

   * Set the location where the Address validation Options should appear on the checkout page.


---

# 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://script-and-theory.gitbook.io/all-in-one-commerce-docs/checkout-blocks/blocks/address-validation.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.
