Skip to content

validation

Auto Added by WPeMatico

Validation Name is not working

Actually, I add validation of alpha-num there it shows the Magento default validation message there. I want to add my custom message there. Validation is working app/design/frontend/Theme/CustomTheme/Magento_Customer/templates/widget/name.phtml Here is my code <div class=”field field-name-firstname required”> <label class=”label” for=”<?= $block->escapeHtmlAttr($block->getFieldId(‘firstname’)) ?>”><span><?=… Read More »Validation Name is not working

How to override Validation.xml from module-customer

I want to override vendor/magento/module-customer/etc/validation.xml This validation.xml in custom module. Baically I want to change below file location with my custom module file <rule name=”check_name”> <entity_constraints> <constraint alias=”name_validator” class=”MagentoCustomerModelValidatorName” /> </entity_constraints> </rule> This MagentoCustomerModelValidatorName with VendorModuleModelValidatorName If anyone have any… Read More »How to override Validation.xml from module-customer