# Phone Number Validation

The admin can validate the mobile number based on the country.

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

* **Show or Hide Country Flag in Mobile Number Field:** Enable phone number validation from here.
* **Country Digits:** Set phone number digits for various countries.

Once the admin sets the phone number validation from the backend, it will be activated in the front end.

**Phone number validation on the frontend shipping page**

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

**Phone number validation on the frontend billing page**

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


---

# 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://docs.magecomp.com/magento-2-cash-on-delivery-verification-extension/phone-number-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.
