Tried via checkout_index_index.xml to add validation on city field in 2.2.6 still now working

<item name="city" xsi:type="array">                                                                    
   <item name="validation" xsi:type="array">                                        
   <item name="required-entry" xsi:type="boolean">true</item>                               
  • In Default Magento, city validation field is working, what's your issue? – Mohit Rane Jul 3 at 8:12
  • We are using onestepcheckout where city validation is not working when we try with above XML – Foram Shah Jul 3 at 8:51
  • have you tried adding class="required-entry" in phtml ? – Mohit Rane Jul 3 at 9:45
  • Facing this issue with one-step checkout which is been generated by JS and XML – Foram Shah Jul 3 at 9:49

Your Answer

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

Browse other questions tagged or ask your own question.