Skip to main content
All CollectionsFeatures
How to Utilize the Phone Rule Feature
How to Utilize the Phone Rule Feature

This article explains how to implement the phone rules via the Address Validator.

Osmand Cordero avatar
Written by Osmand Cordero
Updated over 7 months ago

Boom, the new phone rule feature is here! πŸ’₯☎️

These rules will ensure the phone number entered in the shipping section is in the correct format based on the country. For example, you can enforce the format of US phone numbers to be 9 digits long and not worry about getting incorrect info!

A prerequisite to this is having a Shopify Plus subscription (which is unfortunate, but is a platform limitation). To start using it, you need to go to the Validation Rules section, where you'll see something similar to the Postal Code Rules section:

Now, as you can see on the screenshot, all you need to do to add a phone number rule is select one of the supported countries on the dropdown list, the number of formats you're going to be allowing for that country as well as the warning message that will be displayed, and lastly -- the structure of that format. For example:

Click on the Save button, and voila, you have your phone number rule in place!πŸ“²

Did this answer your question?