23453 Posts in 18904 Topics by 2877 members
|Go to End|
4 August 2010 at 11:59pm
I'm trying to limit the amount of characters that can be entered into a TextareaField in the admin area (eg. 400 char limit) but I can't seem to find any info on this on the forum or documentation.
I can limit a simple TextField using
$f->addFieldToTab("Root.Content.Main", new TextField('Intro', 'Intro', '', 400), 'Content');
But can't find anything for TextareaField.
Any help would be appreciated.
5 August 2010 at 7:59pm
No way AFAIK built in to do this. Whenever I've had to do this I've implemented a custom jQuery based solution like http://www.devcurry.com/2009/08/limit-number-of-characters-in-textarea.html
6 August 2010 at 12:13am
Thanks for your help Willr.
I'll give the jQuery solution a go!
|Go to Top|