Thanks for a great module!

Attached please find a patch that helped me use maxlength for limiting the title length in step 2 of a multistep form. The patch ensures that drupal_add_js($js_settings, 'settings') is called only once. Otherwise the value of the limit attribute is written as limit="limit,limit" instead of limit="limit".

feedback appreciated,
Bluetegu

Comments

dawehner’s picture

could you also add a reset parameter?

additonal

$jsadded = TRUE;

could be in the "if"

bluetegu’s picture

StatusFileSize
new985 bytes

Hi dereine,

Attached please find a patch which takes into account that the function can be called twice, for different fields. I've tested this in my 2 step multiform with both title and body limits and it worked fine. Let me know whether this answers your concern.

Thanks
Bluetegu

Drupal-Tech’s picture

same problem is also in D6, i have tried to implement above patch in D6.. but its not working.

simon georges’s picture

Status: Needs review » Closed (won't fix)

This version of Maxlength is not supported anymore. The issue is closed for this reason.

Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.