forms module, character limit on textarea

Hey guys, what is the character limit for textarea elements created by the forms module?

Hello,

There is no character limit for textarea elements created by the forms module—they can be of variable length.

Chad

Thanks,

What would you think about setting a high limit, like 1500 characters or so?

I often use this module for submission of prayer requests to a church, having a character limit would prevent people from sending ridiculously long requests through the form.

Currently we don’t have a way of doing this, but it is definitely a good suggestion. We will look into this and determine how it fits into the product development roadmap.

What really limits us with text areas is the inability to specify a maxlength like you can with input fields. I think your best bet would be some JavaScript that limits the character count. You can either verify onsubmit or onkeyup, like the follow examples show:

http://www.rgagnon.com/jsdetails/js-0091.html
http://javascript.internet.com/forms/limit-textarea.html
http://www.felgall.com/jstip20.htm

Justin “Jark” Stayton
Monk Development

Edited by jstayton16 on 10/15/08

page 1 of 1

discussions 1 to 5 of 5