Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Textfield Counter

3,840 sites Security covered Drupal 9–11
View on drupal.org

This module adds character counters to text fields and text areas, showing users how many characters they have left. The counter updates in real-time as they type and can be configured to appear above or below the field, with options for JavaScript validation and custom messages.

Module summary

This module adds new widgets for the form display of each of the field types that ship with core, for both text fields and text areas. The widgets this module provides extend the default core widgets, adding a text counter that displays the remaining number of characters allowed in the field. This counter updates with JavaScript as the user types. The counter works on text fields, text areas, and CKEditor editors.

Widget settings allow users to choose the location of the counter (above or below), whether to use JavaScript validation to prevent form submission when the character count is exceeded, whether to count HTML characters, and a customizable message indicating how many characters are remaining.

Applicable Field types

The field types that this module works on are:

  • Text (formatted)
  • Text (formatted, long)
  • Text (formatted, long, with summary)
  • Text (plain)
  • Text (plain, long)

Use Instructions

To use this module, install it as you would any module. Create a new field of the types listed above, then go to the 'Manage form display' tab. In the 'widget' column, select the widget that ends with 'and a counter'.

Depends on

Dependencies of the latest stable release

  • text Drupal core

Required by

1 tracked project depends on this one

Activity

Tracked releases
6
Tracked since
Dec 2024
Latest release
1 week ago
Releases (12 mo)
3
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
3.x-dev Dev 11 Aug 22, 2026
3.0.0-beta1 Pre-release 11 Aug 21, 2026
2.6.0-rc1 Pre-release 9–11 Aug 21, 2026
2.5.0 Stable 9–11 Jun 24, 2025
2.5.0-rc1 Pre-release 9–11 Jun 2, 2025
2.4.0 Stable 9–11 Dec 27, 2024