How to set character length (maxlength) for input box/text box

Thank you very much for the fast reply, very kind.

This solution will be perfect. I was not aware of it.