Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have installed the this module but it only works for the cck fields.
I want to apply its functionality to my custom field which I have created in my .module file.
So that the countdown remaining characters also display for my custom form field. And also limit it the characters in it.
Comments
Comment #1
dawehnerCan you show your custom field implementation?
This would help to fix this bug
Comment #2
hmdnawaz CreditAttribution: hmdnawaz commentedI have created my custom form field like the following.
Now how should I use the maxlength module for this field. So that it limit the characters and also display a countdown remaining characters for this field?
Comment #3
dawehnerYeah, it would as always have helped to provide some context.
See API.txt in the latest dev version
Comment #4
hmdnawaz CreditAttribution: hmdnawaz commentedI downloaded the maxlength-6.x-2.x-dev but there is no api.txt file in it.
Comment #5
dawehnerOh i forgot to push the commits. Now it's in git.