7 Replies
We need some more info 🤷🏼‍♀️
What error did you get?
i get no message/error, followed the docs. expected behaviour : get message that I exceeded the max length. this is inside a relationsmanager form
Can you show your code? Maybe can share the file here to debug
->maxLength() adds the maxlength attribute to the input meaning the user can’t type more than two characters. It does add the validation as well but since the input is maxed at two it will not trigger an error. If that is not the behavior you want then you’ll need to use ->rules() instead.
the input still lets me add more than the max so that is weird
That is very weird. At the least it should trigger a browser validation error if it doesn’t act in accordance with the expected behavior.