0

Condition is this.

VAT textfield - require field validation off when country selected is USA

VAT textfield - require field validation on when country selected is other than USA

2
  • This field is your custom field? – Khoa TruongDinh Aug 21 '17 at 6:55
  • no not a custom field. it is a system field of VAT – Sarfaraj Sipai Aug 26 '17 at 10:06
1

it's done Using override

Magento_Checkout/web/js/shipping.js

validation working.

In this file there are different types of method related to method add jquery validation. Like method i have used : saveNewAddress and setShippingInformation.

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.