How to enable phone number validations in checkout forms?

How to enable phone number validations in checkout forms?

bhavya_sindhu
Shopify Partner
5 0 1

in the checkout form there are no validations for phone number it is taking alphabets and unlimited numbers also

Replies 5 (5)

DelightCart
Shopify Partner
1261 83 157

@bhavya_sindhu 

To make phone numbers mandatory in Shopify checkout:

1. Go to your Shopify admin and open up settings
2. Click on Checkout
3. Scroll down to the Form options and make "Shipping address phone number" Required.

 

Delight Cart - It's time to turn your visitors into loyal shoppers! 

Delight Loyalty - Increase repeat sales quickly and build lifelong customers loyalty.

MS_WEB_DESIGNER
Shopify Partner
695 52 135

Hi @bhavya_sindhu,

I am Ani From https://www.task4store.com/  - Shopify Small & Custom Tasks Experts ( By MS Web Designer - Top Rated Shopify Certified Experts and eCommerce Consultant from Singapore )

I will love to help you with your concern.

 

To make phone numbers mandatory in Shopify checkout:

Go to your Shopify admin and open up settings-->Click on Checkout-->Scroll down to the Form options and make "Shipping address phone number" Required.

MS_WEB_DESIGNER_0-1649419492444.png

 

If you have any concerns feel free to ask me!

Regards,
Ani

banned
bhavya_sindhu
Shopify Partner
5 0 1

Thank you for helping, but my issue was alphabets are also taking in phonenumber field,alphabets  should not be taken

GetAllTool
Shopify Partner
33 0 7
Hi, our app enables native checkout validation (King Checkout Validation), which checks each field according to the rules you set yourself and prevents unexpected checkout.

 

for example:

 

Prevent Post office (PO) boxes address
Check if the address contains a house number / apartment number
Check if the number of field characters exceeds the maximum value
Customized keywords and regular expression checking rules
etc...
 
For your scenario, you can choose the regular express rule to apply to the phone field, ensuring that the phone value can only be a number

pdaire
Visitor
2 0 0

Hi!

You can easily validate you phone number (not only format) using this simple service: 
https://docs.whatsauth.com/guides/web-installation/shopify-install.html

 

It allows you to be sure of that the number is the actual number of the user, and you can also prevent bots to create false orders,as a captcha would do it.

It works like a charm