How is a customer's telephone validated?

js-validation
address
address-attribute
eav
customer-attribute
telephone
customer
attribute
(Dmitry Fedyuk) #1

It is validated in the 7 places:

1

On the client-side by a JavaScript validator

2

In the EAV because it has is_required = 1 for both the customer and the customer_address entity types.

3

4

5

6

7

0 Likes

Where are the telephone validation rules declared?
How to change customer address frontend validation rules?
Which xml config is responsible for the validation rules etc. for "billing data" form in one step checkout (2-nd step)?
Why does a saving a customer's address in his address book not work in my store?
(John_P) #2

This is brilliant information! The telephone field should be made to be optional or compulsory in the backend.

How would I use the information here to make the field optional and update safe?

0 Likes

(Juan Pedro Barba) #3

Hey! you forget:

module-customer/view/base/ui_component
module-customer/view/frontend/templates/address/edit.phtml

1 Like