Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Textfield Counter

Security covered Under active development 4,046 sites

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'.

Drupal 9–11

Ask your assistant about Textfield Counter

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • text Drupal core

Required by

1 tracked project depends on this one

Activity

Tracked releases
10
Tracked since
Jan 2023
Latest release
1 month ago
Releases (12 mo)
3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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
2.3.0 Stable 8–10 Jul 19, 2023
2.2.0 Stable 8–10 Jul 18, 2023
2.x-dev Dev 9–11 PHP >=8.1.0 Jul 18, 2023
2.1.0 Stable 8–10 Jan 25, 2023