Limit number of characters in TextLine and TextArea

I would really like an option to limit the number of characters in TextLine and TextArea input types. Preferably, this would include a counter, showing the editor how many characters that are left - á la Twitter.

We see that editors too often write too long and/or too complicated texts in fields not suited to long texts, and it would be a great if the editor could indicate visually that this is the case.

This was also requested in 2015: Maximum length of TextLine or TextArea

4 Likes

Would be handy with a built-in support for this, with a counter as you mention.

If you need this now you can solve it with regex on TextLine, something like this:
/^[a-z]{0,255}$/

And ofc add more to the a-z pattern if you need more characters.

@Jonas, we have added this to our backlog. No ETA at the moment.