This should work for other field types as you expect, but empty string is still valid string value. You can set: requires=IS_LENGTH(minsize=1) to disallow empty strings.
On Tue, Sep 4, 2012 at 7:24 PM, Denis Rykov <ryk...@gmail.com> wrote: > I use the following Field definition: > > Field('admin_unit', required=True, label='Region'), > > But when I create new row through smartgrid interface and leave this field > empty - validation error not appears and record creates in database. If see > table in database you can see that 'admin_unit' field contains empty string > (''). Is it correct? It looks like required options doesn't work properly. > > -- > > > > --