title | issue |
---|---|
Improvement validate with white space |
NEXT-17481 |
- Changed
StringFieldSerializer::encode
insrc/Core/Framework/DataAbstractionLayer/FieldSerializer/StringFieldSerializer.php
.
- Added function
_onValidateRequired
instorefront/src/plugin/forms/form-validation.plugin.js
to validate required field. - Added data attributes
data-form-validation-required
anddata-form-validation-required-message
to validate and show the error message for the required field in the following files:storefront/component/address/address-form.html.twig
storefront/component/address/address-personal.html.twig
storefront/component/address/address-personal-company.html.twig