The maxlength property seems like it's supposed to be set up, but the lack of any built-in form builder configuration for maxlength or specifying form parents in the Webform integration prevents maxlength from being shown.

Comments

quicksketch’s picture

Status: Active » Needs review
StatusFileSize
new4.49 KB

Here we are. This adds a new global form for editing #maxlength properties. It also fixes our validation function "form_validate_integer" so that we can use it, to ensure that maxlength is set as an integer.

quicksketch’s picture

StatusFileSize
new4.87 KB

Here's a revised version that works with other locales, using localeconv() to get the thousands separator instead of just assuming a comma.

quicksketch’s picture

StatusFileSize
new5.3 KB

Okay one last version that correctly does not save strings such as "100x" as an integer (since PHP will evaluate "100x" * 1 as "100").

quicksketch’s picture

Status: Needs review » Fixed

Committed to both branches.

Status: Fixed » Closed (fixed)

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