# 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="https://4003910945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQqfGe9Y27MHyJ9FJO4GS%2Fuploads%2FC6jeFZSebXgE5sHZkg5f%2FScreenshot%202024-05-16%20at%205.03.15%E2%80%AFPM.png?alt=media&#x26;token=d6f855d5-6b69-4d53-be0d-489429f1ee4f" 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="https://4003910945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQqfGe9Y27MHyJ9FJO4GS%2Fuploads%2FnKnzwnEQKkpSsETUlodz%2FScreenshot%202024-05-16%20at%205.29.05%E2%80%AFPM.png?alt=media&#x26;token=1257cfca-6919-4518-8132-37a926c9868d" 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="https://4003910945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQqfGe9Y27MHyJ9FJO4GS%2Fuploads%2FhnN7nezLx4zvLVVxWvHy%2FScreenshot%202024-05-16%20at%205.31.00%E2%80%AFPM.png?alt=media&#x26;token=e013f106-947d-4932-bd3b-af1d73049f62" 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="https://4003910945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQqfGe9Y27MHyJ9FJO4GS%2Fuploads%2F9KOT58HXMkhI83SDflBI%2FScreenshot%202024-03-19%20at%205.15.47%E2%80%AFPM.png?alt=media&#x26;token=f9ad30f4-17ef-4bfe-bc1f-2ff5544e08fb" 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="https://4003910945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQqfGe9Y27MHyJ9FJO4GS%2Fuploads%2Fz0D4MME6G1vdVeVl2Hzj%2FScreenshot%202024-03-19%20at%205.17.13%E2%80%AFPM.png?alt=media&#x26;token=10bf7a11-b7a7-4975-9b0b-080e80995362" 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="https://4003910945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQqfGe9Y27MHyJ9FJO4GS%2Fuploads%2Fhnoldq2gc3oPlZBCss5s%2FScreenshot%202024-05-16%20at%206.37.56%E2%80%AFPM.png?alt=media&#x26;token=ad2aba7c-08ee-403c-8604-e69943e0628d" 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="https://4003910945-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQqfGe9Y27MHyJ9FJO4GS%2Fuploads%2FQzkWh17V3OPSjAzWC8vK%2FScreenshot%202024-05-16%20at%206.40.17%E2%80%AFPM.png?alt=media&#x26;token=464c76e9-9f61-40ad-9920-effa208803bf" 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>.
