good morning guys.
I ask for your help in the following topic.
I have configured a maxlength and the idea is that when exceeding said maximum, an error message is sent saying that it exceeded the maximum number of characters allowed.
here the code in question:
Your code should generate HTML with an input that only allows 255 characters. But it won’t generate any error message, for that you need to add validation in the table class.
good morning guys.
I managed to resolve the issue of sending the message, do it from the validator by adding the following rule:
$validator
->maxLength('destination_address', 255, __('You have exceeded the maximum characters for this field, 255.'))
ded this way when exceeding the maximum established, it does not allow saving the record and places the necessary message
I thank you @Zuluru and @dreamingmind for your time and answers, they were very useful for me