I have set a textarea to be required, plain text CCK field. If I skip filling it in and try to preview/save the node then the validation complains and Maxlength stops working. I.e. it doesn't count down, nor stop text from being filled in when going over the max length limit.

Comments

Patroclas’s picture

There are similar threads about this - once the form fails validation, maxlength stops working.

An example is if text is cut and pasted into a cck textfield with maxlength enabled - if the count is exceeded, the form fails validation and maxlength stops working. This renders the module unusable in a production site.

Is there any fix for this planned please?

tsvenson’s picture

Another easy way to test this is to put the field as required and not enter anything in it.

NaX’s picture

Version: 6.x-2.0-beta1 » 6.x-2.x-dev
Component: User interface » Code

This patch http://drupal.org/node/471138#comment-2073606 fixed my problem with validation breaking the maxlength count.
I suggest you give that patch a try. The patch is old and might need to be manually applied.

aron novak’s picture

Status: Active » Closed (duplicate)

Duplicate of #471138: Remaining Characters not working after failed submission . If you experience this bug, re-open the linked ticket, not this one. Thanks