Limiting number of characters in the text area box

chriso0258 27 May, 2012
Is there a way to limit the number of character a person can type in a text area? I see column width and number of rows as options, but no limiting characters. I would like to make a limit of 400.

Thanks.
Bossman 18 Jul, 2012
Bob,
this works great if I don't have the "Enable WYSIWYG Editor" checked. But if WYSIWYG editor is checked, it doesn't get into the JS function. Happens with both tinyMCE and JCE. Any ideas?
Thanks!
GreyHead 19 Jul, 2012
Hi Bossman,

I imagine that this happens because the tinyMCE and JCE editors replace the textarea with their own text space and so the JavaScript has no idea what to count. You also have the problem that the html adds to the character count. Unless there are some settings in tinyMCE or JCE that can limit the character count I think that you'd need to use ServerSide validation to check this.

Bob
This topic is locked and no more replies can be posted.