BTW... the new version in trunk lints the size of 'text' fields to 2**16 to avoid problems in with MySQL. It can be changed but it should be fine for most users.
Massimo On Nov 7, 11:26 am, "Wes James" <[EMAIL PROTECTED]> wrote: > On Fri, Nov 7, 2008 at 10:17 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > > requires=IS_LENGTH(256) > > > this is automatic for SQLFORMs if a SQLField(....,length=256) > > > On Nov 7, 11:08 am, "Wes James" <[EMAIL PROTECTED]> wrote: > >> How do you set on a per field basis the maxlength - i.e., the total > >> text someone can type in a form input field. Can this be done in > >> db.py? > > >> -wj > > there should be maxlenth='sqlfield.length' like process in the in the > html input field creation for the maxlength to work right on web > pages. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---