Skip to content

Set the maximum length of any field on your Backdrop CMS website and enforce while editing rather than just on save, showing a countdown of remaining characters.

License

Notifications You must be signed in to change notification settings

backdrop-contrib/maxlength

Repository files navigation

MaxLength

Set the maximum length of any field on your Backdrop CMS website and enforce while editing rather than just on save, showing a countdown of remaining characters. This includes fields created using the UI (e.g. any text field on a node). It is compatible with Backdrop's CKEditor out of the box.

Installation

Configuration and Usage

When the maximum length is enforced for a field, while a user is editing content of that type some Javascript will count down how many characters are left. (If the Javascript is turned off, it falls back to form API validation.)

MaxLength creates a new Form Property: #maxlength_js which in conjunction with #maxlength will enforce, via Javascript, the maxlength of a textfield or textarea and will show the number of characters left.

Using the field setting page, you can limit text fields and text areas. For text fields this module will use the "Maximum length" value set in the field settings.

More details may be found (or added) in the Wiki

Issues

Bugs and Feature requests should be reported in the Issue Queue

Current Maintainers

Credits

  • Ported to Backdrop by Laryn Kragt Bakker.
  • Initial Backdrop port sponsored by CEDC.org.
  • Maintained for Drupal by Inovae, jm.federico, and Schnitzel, sponsored by Amazee Labs.
  • Drupal version is thanks to jm.federico, johnnygamba, Seed EM, a_c_m, dereine, and mariuss and others as noted in the commit history.
  • Originally inspired by functionality found in the ed_classified module.

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

Set the maximum length of any field on your Backdrop CMS website and enforce while editing rather than just on save, showing a countdown of remaining characters.

Topics

Resources

License

Stars

Watchers

Forks