Nah, it’s not in eForm at the moment. It has been relying on the browsers behaviour for that, but it’s probably not a bad idea to add this.
How I’ll probably do it is to add that possibility to the text and textarea fields. eForm would ’read’ it directly from the input tags so in your form you would have something like this.
<input type='text' name='name' maxlength='15' value="" />
<textarea name='textarea' maxlength='12000'>blah blah</textarea>
I’d be inclined to simply truncate any input that’s too long and not necessarily generate an error. What do you think?
(Oh and for those worried about xhtml validation,... the maxlength attribute would be stripped for the textarea before the form is displayed)