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? Aug 21, 2017 at 6:55
  • no not a custom field. it is a system field of VAT Aug 26, 2017 at 10:06

1 Answer 1

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 and acknowledge you have read our privacy policy.

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