I'm try ti use maxlength for CCK node type.

Issue reproduced when user create new node but do not provide one of required fields (title, for example) and submit form.
In this case form retrieved from cache and hook_form_alter do not called. So, maxlength do not add form fields into Drupal.settings.maxlength object and client-side length limitation do not works.

Comments

Tyborrex’s picture

Same problem here.

hefox’s picture

This may have been fixed?

the JS is added during an after_build.

However, I sometimes have had issues with adding js during after_build due to ajax requests, but haven't seen if there's any issue with that. The least problematic way of adding js is during a pre_render and store in the form whether the js has been added.

cedewey’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

The Drupal 6 version of Maxlength is no longer supported so I'm marking this Closed (won't fix).

I also encourage you, if you haven't already, to upgrade your site to Drupal 8/9. We are actively maintaining that version and you would enjoy all of the other features of the latest version of Drupal.