How is a customer's telephone validated?

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

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?

Hey! you forget:

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

1 Like