Character counter on text field

(Paul Duffield) #1

Does Matrix have a keyword or set of keywords that can be used to add a character counter to text fields? Or do we need to resort to setting up json/javacript functions? I’ve had a look through documentation and the forum but cannot find anything on character counters.

(Douglas (@finnatic at @waikato)) #2

We’ve previously used simple jquery on asset builders. Nothing built in AFAIK. Would be an interesting HOWTO for Edit+ plugins - how to add some simple jquery or vanilla JS to do this.

(Bart Banda) #3

There is no keyword for it as keywords typically never produce JS (you def need JS for this type of functionality).

I’d just try and use a simple JS solution like this one:

(Paul Duffield) #4

Thanks all,

I will include some JS.


(Douglas (@finnatic at @waikato)) #5

We’ve been happily using the second answer on that stackoverflow question ( for many years on asset builders.

(Paul Duffield) #6

Thanks Douglas,

Was able to get something working using your stack overflow suggestion.