Skip to content

validation

Auto Added by WPeMatico

Magento 2 : How add validation validator to custom input field in checkout page?

We have to add custom form in check-money order payment method.We have to add custom validations before order placement but its not working. please check below code 1)Create the validator:- Custom_Checkmethod/view/frontend/web/js/model/custom-validation.js define( [ ‘jquery’, ‘mage/validation’ ], function ($) { ‘use… Read More »Magento 2 : How add validation validator to custom input field in checkout page?

Add custom textbox after shipping method if freeshipping selected with validation

i’ve added textbox field if shipping method is freeshipping based on the shipping method textbox functionality working fine. but i want to make that field required which is not working here is my code checkout_index_index.xml <referenceBlock name=”checkout.root”> <arguments> <argument name=”jsLayout”… Read More »Add custom textbox after shipping method if freeshipping selected with validation