0

Hello i want to add custom validation in address book of customer Account dashboard, when the customer is sign in they have one tab address information in that when we add new address that open form i want to add validation for postcode and telephone number which are accept only number please help me how can i do that.

  • If anyone know please help me – Magento Oct 9 at 18:33
  • @sumit if you know please halp me – Magento Oct 10 at 2:12
0

I recommend to take a look at this GitHub module

https://github.com/experius/Magento-2-Module-Experius-Address-Lines

 

Mage2 Module Experius AddressLines,

Adds labels to address lines and adds configuration per address line.

Configuration Per Line (Required Entry Yes/No, Label and Validation Classes)

Stores > Configuration > Customers > Customer Configuration > Address Lines

This module also works on the Customer Account Address Edit pages and if you enable the Address to Display on the Customer Registration Page it will also show there.

For more information how to Display the Address on the Customer Registration Page take a look at this blog article #Mr. Lewis wrote https://codeblog.experius.nl/magento-2-address-fields-customer-registration/

  • Yeah i checked it but it doesn't helpful for me – Magento Oct 9 at 16:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.