I know magento give max_text_length
validation for validating length & print error message regarding it, but I want to add attribute in my input field as maxlength="5"
so i can stop user to adding more value from it.
Magento 2 – Add Maxlength in Form UI Component
form-validationmagento2ui-formuicomponent
Best Answer
You can add below line in your:
add VENDOR/MODULE/view/adminhtml/web/template/form/element/input.html
after adding please run below commands: