# Address Validation

How to validate the <mark style="color:yellow;">**Address lines**</mark> using Character limit on the checkout page?

{% embed url="<https://drive.google.com/file/d/1VLz73JBkACvzaKPQkVLnkbmrjHWvVpMu/view?usp=sharing>" %}
Address Validation
{% endembed %}

## Guide

1. Go to [<mark style="color:yellow;">**Settings**</mark>](https://admin.shopify.com/apps/dynamic-checkout-customizer/settings) page and click [<mark style="color:yellow;">**Address Validation**</mark>](https://admin.shopify.com/apps/dynamic-checkout-customizer/settings) tab.

<figure><img src="/files/xAlZH9MLmZrzpnekvVw4" alt="" width="563"><figcaption></figcaption></figure>

2. Add a new condition source <mark style="color:yellow;">**Address Line 1**</mark> from the Character Limit option.

<figure><img src="/files/0wSUjUffkncM987gf1gh" alt="" width="563"><figcaption></figcaption></figure>

3. <mark style="color:yellow;">**Save**</mark> and <mark style="color:yellow;">**Enable**</mark> the settings.

<figure><img src="/files/5vneLZcJBpyAZpY7Rj6M" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Incase of custom Regex, please contact our [support](https://calendly.com/san-nomads/30-min-meeting?back=1\&month=2024-03) team.
{% endhint %}

4. Go to store [<mark style="color:yellow;">**Settings**</mark>](https://admin.shopify.com/settings), click Checkout and then select a checkout profile and click on <mark style="color:yellow;">**customize**</mark> button to start the customization process.

<figure><img src="/files/QEG4vdai9S6VSPxiiFGm" alt="" width="563"><figcaption></figcaption></figure>

5. In the [<mark style="color:yellow;">**Checkout editor**</mark>](https://admin.shopify.com/settings/checkout/editor), click on the <mark style="color:yellow;">**Add app block**</mark> button located at the bottom left corner of the page.

<figure><img src="/files/dV5yZqmMYcIwNeEJSnqf" alt="" width="563"><figcaption></figcaption></figure>

6. Select the <mark style="color:yellow;">**Checkout - Address Validation**</mark> app block for Address Validation.

<figure><img src="/files/A93V2bArHrri5Z4vd8pW" alt="" width="563"><figcaption></figcaption></figure>

7. Click on the <mark style="color:yellow;">**Save**</mark> button to publish the changes live for the customers. Refresh the page to view the changes on the checkout page.

<figure><img src="/files/pKb3Tr71MTLVPUi2i4uM" alt="" width="563"><figcaption></figcaption></figure>

## Why does it matter?

<mark style="color:yellow;">**Address Validation**</mark> customization for validation of Address lines can reduce the Shipping and Logistics cost by <mark style="color:yellow;">**10%**</mark>.


---

# Agent Instructions: 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:

```
GET https://apps.sanomads.com/dynamic-checkout-customizer/use-cases/address-validation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
