Skip to content

Telephone field in customer account does not validate #39395

@marctbb

Description

@marctbb

Preconditions and environment

Magento 2 versions tested:

  • 2.4.6-p4 (with the default Blank theme).
  • 2.4.7 (also tested with the default Blank theme).

Configuration:

  • Stores > Configuration > Customers > Customer Configuration > Show Telephone: Set to Required.

Issue observed in both environments and themes.

Steps to reproduce

  1. Go to My Account as a logged-in customer.
  2. Attempt to Add or Edit the telephone field under account details.
  3. Enter invalid input, such as text or symbols (e.g., "abc123" or "!@#").
  4. Save the changes.

Expected result

  • The telephone field in the My Account section should validate input to ensure it is a valid phone number (e.g., digits only, proper phone format).
  • Invalid input should trigger an error message and prevent saving.

Actual result

  • The telephone field in My Account allows invalid input (e.g., text or symbols) without validation.
  • In the checkout, when retrieving customer details from the account, the invalid phone number causes errors during the shipping process.
  • For example, UPS shipping fails to process the order due to incorrect phone number format.

Additional information

  • Video evidence of the issue is attached for reference.
  • The issue occurs regardless of the Magento version (tested on 2.4.6-p4 and 2.4.7) or theme used (Blank theme).
  • This inconsistency between the My Account section and Checkout makes it critical, as incorrect phone numbers lead to shipping failures.
phone_validation.mp4

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Labels

Area: AccountComponent: UiIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.6-p4Indicates original Magento version for the Issue report.Reported on 2.4.7Indicates original Magento version for the Issue report.Reported on 2.4.7-p3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions