How to Enable Magento 2 Telephone Validation in Customer Registration
The default Magento 2 store offers customer account configuration settings that can be used for multiple purposes like new account options, email options, password options, name and address options such as show gender, the number of lines in the street address, add date of birth in registration form, etc. Magento 2, by default, offers an option to collect the customers’ fax number details. However, it is up to the store admin to show fax field in Magento 2 store, store credit options, login options, captcha for security, and many more.
One of the options that I am posting here is to show telephone in customer account in Magento 2. The telephone number is required to contact the customer in case of any issues in payments, shipping, give them special offers, or a part of any of your discount schemes, or even simply for, customer communication!
In addition to showing telephone number, another important option for businesses is to show Tax/VAT Number in Registration Form, which can aid in better communication and build trust by providing transparent pricing and complying with tax regulations in Magento 2.
Check the below steps to enable Magento 2 telephone validation in customer registration as per the business requirements:
Steps to Enable Magento 2 Telephone Validation in Customer Registration:
- Login to Magento 2 admin panel
- Navigate to Stores > Configuration
- Under Customer, select Customer Configuration
- Expand Name and Address Options
- Set “required” in the field “Show Telephone”
- Save the configuration
That’s it.
Any doubts in the above method can be mentioned in the Comments section below.
I’d be happy to help.
Also, do share the post with the Magento Community via social media.
Thank you.
Shivbhadrasinh Gohil
Shivbhadrasinh is the Co-founder & Chief Marketing Officer at Meetanshi. He leads the marketing team and is the person behind the marketing & branding success of the company. Being a seasoned digital marketer, he has been consulting online businesses for growth since 2010 and has helped 100+ clients with digital marketing success.
He loves sharing tips and insights about the latest digital marketing trends aimed at helping online business owners.
2 Comments
This telephone field is not shown on Account Register Page. How can do for it?
Hello,
The address-related fields will be shown only if you have implemented the logic to add the address field in Customer Registration.
Please refer https://meetanshi.com/blog/show-address-fields-in-registration-form-in-magento-2/
Thank you