How about: db.table.field.requires = IS_LENGTH(1) On Oct 22, 12:35 am, TheSweetlink <[email protected]> wrote: > I have a SQLFORM.factory that is respecting IS_NOT_EMPTY() for a field > with type='string' but not respecting it for a diffirent field of > type='list:string'. > > If the list:string type field is left empty the form validates. > > Confirmed with firebug. > > Tested with form.accepts, form.process(...).accepted, and > form.validate. > > I tried removing all other conditions in the list:string field's > requirements as well as setting it manually after the form is created > with: > > form.element('#no_table_yayweb2py')['requires']=IS_NOT_EMPTY() > > The form uses an onvalidation= and again, it works for the plain > string but not a field of list:string > > The form is validated no matter what I do. > > Your thoughts are most appreciated. > > David
- [web2py] SQLFORM.factory not respecting IS_NOT_EMPTY() f... TheSweetlink
- [web2py] Re: SQLFORM.factory not respecting IS_NOT_... TheSweetlink
- [web2py] Re: SQLFORM.factory not respecting IS_... Massimo Di Pierro
- [web2py] Re: SQLFORM.factory not respecting... TheSweetlink
- [web2py] Re: SQLFORM.factory not respec... TheSweetlink
- Re: [web2py] Re: SQLFORM.factory n... Vasile Ermicioi
- [web2py] Re: SQLFORM.factory n... TheSweetlink
- [web2py] Re: SQLFORM.factory not respecting IS_NOT_... ニコノコ
- Re: [web2py] Re: SQLFORM.factory not respecting... Vasile Ermicioi
- [web2py] Re: SQLFORM.factory not respecting... ニコノコ
- [web2py] Re: SQLFORM.factory not respecting... ニコノコ
- [web2py] Re: SQLFORM.factory not respec... TheSweetlink
- [web2py] Re: SQLFORM.factory not r... Massimo Di Pierro
- [web2py] Re: SQLFORM.factory n... TheSweetlink
- [web2py] Re: SQLFORM.facto... Massimo Di Pierro
- [web2py] Re: SQLFORM.facto... TheSweetlink

