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

dawehner’s picture

Category: feature » bug
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Can you show your custom field implementation?

This would help to fix this bug

hmdnawaz’s picture

I have created my custom form field like the following.

$form=array()
$form['my_textarea'] = array(
'#type' => 'textarea',
'#title' => t('My field'),
);

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?

dawehner’s picture

Status: Postponed (maintainer needs more info) » Fixed

Yeah, it would as always have helped to provide some context.

See API.txt in the latest dev version

hmdnawaz’s picture

I downloaded the maxlength-6.x-2.x-dev but there is no api.txt file in it.

dawehner’s picture

Oh i forgot to push the commits. Now it's in git.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.