requires=[IS_NOT_EMPTY(error_message=T('my custom message')),IS_IN_LIST(['first','second'])]
should be just requires=IS_IN_LIST(['first','second']) if you require the value to be in a list, it cannot be empty. This will give you the dropdown. On Nov 7, 9:31 am, Marco Prosperi <marcoprosperi...@gmail.com> wrote: > hi all, > still have problems with validators. Why a field defined so in db.py > > .. > Field('myfield','string',requires=[IS_NOT_EMPTY(error_message=T('my > custom message')),IS_IN_LIST(['first','second'])]), > .. > > doesn't show a drop down list in a SQLFORM but shows 'my custom > message' after submit if left empty? > > thanks in advance, > Marco