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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | form_builder_maxlength.patch | 5.3 KB | quicksketch |
| #2 | form_builder_maxlength.patch | 4.87 KB | quicksketch |
| #1 | form_builder_maxlength.patch | 4.49 KB | quicksketch |
Comments
Comment #1
quicksketchHere 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.
Comment #2
quicksketchHere's a revised version that works with other locales, using localeconv() to get the thousands separator instead of just assuming a comma.
Comment #3
quicksketchOkay one last version that correctly does not save strings such as "100x" as an integer (since PHP will evaluate "100x" * 1 as "100").
Comment #4
quicksketchCommitted to both branches.