Download & Extend

countdown disabled after form submit

Project:Maxlength
Version:6.x-2.0-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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

#1

Same problem here.

#2

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.