Hi
I have a solution but it will work abit different than the one you want..
It's an HTML code.
in the TOPIC field u'll find something like this :: <input type="text" name"topic" value="" size="16">
Notice that the "name" can be anything depending on the php code. now all you have to do is to add this between the brackets :: maxlength="20"
So the whole field code will look like this :: <input type="text" name="topic" value="" size="16" maxlength="20">
It will allow the visitor/submitter to write only 20 digits.
I hope this works.