magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.57k stars 9.32k forks source link

Telephone field in customer account does not validate #39395

Open marctbb opened 1 day ago

marctbb commented 1 day ago

Preconditions and environment

Magento 2 versions tested:

Configuration:

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

Actual result

Additional information

https://github.com/user-attachments/assets/10689ac7-e900-4111-a35a-e1bde0c7e217

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 day ago

Hi @marctbb. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.

m2-assistant[bot] commented 1 day ago

Hi @engcom-Delta. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Delta commented 1 day ago

Hi @marctbb ,

Thanks for your reporting and collaboration. We have verified the issue in Latest 2.4 develop instance, but we are unable to reproduce the issue. Kindly refer the screenshots.

Steps to reproduce Stores > Configuration > Customers > Customer Configuration > Show Telephone: Set to Required. image

  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. Observe Error displays when user fill invalid phone number image Invalid phone number error

Can you please re-verify and confirm if you are still facing the issue. Thanks.