How to add data to custom validation rule?
I would like to understand how to add additional data to custom validation rule. I noticed in Magento 2 core files something like the following: validator.addRule( ‘validate-customer-company’, function (value, params, data) { return !(data.customer && data[‘is_company_user’] }, $.mage.__(‘Message’) … Does… Read More »How to add data to custom validation rule?