Add counter to textfields in bundles. eg. link field

Created on 29 April 2019, over 5 years ago
Updated 25 July 2024, 5 months ago

Currently this is limited to the textfields only and there are many other locations where it would be ideal to have this counter listed.

Specifically in our case, having a counter on a text field in the link field bundle.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇺🇸United States philosurfer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India nayana_mvr

    Verified the patch #6 and tested it on Drupal version 9.5.x and Textfield Counter 8.x-1.x. The patch works fine and I have added the before and after screenshots for reference.

  • 🇨🇷Costa Rica esolano

    Re-rolling patch for version `2.3.0`

  • 🇵🇰Pakistan hamza_niazi

    I updated the code to reference the validation method using the class name (static::class) instead of dynamically deriving it. This ensures the method is correctly called on the class using the trait, resolving the instantiation error.
    The issue in #8 patch was this code originally attempted to call the validateFieldFormElement method using a dynamically derived class name from traits, which caused an error because traits cannot be instantiated or referenced in this manner. So i update the patch

Production build 0.71.5 2024