Jump to:

5540 Posts in 1738 Topics by 1224 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Show Character Count on TextField in Admin End

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1570 Views
  • Ryoken
    Community Member
    18 Posts

    Show Character Count on TextField in Admin End Link to this post

    I'm looking for the most efficient, and reusable way, to display the character count on Text fields in the admin end.. Ideally only on fields where a maximum length is shown..

    Currently I just add a literal field under the Text Fields with a "Maximum Length of X Characters"... What I'd like is to have it be something like "X of Y Characters Used" or the like.. Best case it would be done automatically, as in any TextFields that have a limit will automatically get the feedback under them ( Which I'm sure would be the most complex to initially create, but would be idea for reusing on project after project.. ), but if being more manual with inline scripts is the best way, then I'll gladly take it.

    Any ideas ?
    My web strengths are more in the area of CSS and HTML, not PHP and Javascript, so it's a little out of my league.

    I would be most thankful for any help.

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.