> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.weblium.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Adding a phone number mask

If users enter phone numbers in the correct format, it improves data consistency and increases the usability of the data. A phone number mask automatically formats numbers as they are entered, preventing incorrect entries and making forms easier to use.

In this tutorial, we will go through the process of adding a phone number mask to both the contact form and the phone field in the online store cart. 

Ultimately, users will see a predefined format (e.g., (123) 456-7890 or + 1 234-567-8901) when entering their phone numbers, which will reduce errors and improve the overall experience of checkout and sending a response through the contact form. 

Content:
[Adding a phone number mask in a contact form](#1-adding-a-phone-number-mask-in-a-contact-form)
[Adding a phone number mask in the shopping cart](#1-adding-a-phone-number-mask-in-the-shopping-cart) 

# Adding a phone number mask in a contact form

1. Hover over the contact form and click on the gear to open its settings:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/angl-1_1fn93nf.png)
2. Add a **Phone** field via the **Add a field** button on the **Items** tab:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/angl-2_12d20s9.png)
... or, if the field already exists, go directly to its settings:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/angl-3_16y50r5.png)
3. In the field settings, activate the **Phone number mask** switch and set the desired template:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/angl-4_lvjsok.png)
|| ${color}[#ffa800](Note:) There is currently no option to add a country code selection.

4. You're done! Don't forget to [republish the site](https://help.weblium.com/en-us/article/publishing-a-site-tgxmch/) for the changes to be applied.

# Adding a phone number mask in the shopping cart

1. Open your site settings, and in the Your store **Settings** section, go to the **Shopping cart** tab:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/angl-5_1kgmrgh.png)
2. Add a **Phone** field via the **Add field** button:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/angl-6_ez3qrz.png)
... or, if the field already exists, go directly to its settings:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/angl-7_140kk53.png)
3. In the field settings, activate the **Phone number mask** switch and set the desired template:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/angl-8_ueuou8.png)
|| ${color}[#ffa800](Note:) There is currently no option to add a country code selection.

4. You're done! Don't forget to [republish your site](https://help.weblium.com/en-us/article/publishing-a-site-tgxmch/) for the changes to be applied.
