If you use IS_IN_DB it will automatically check if is not empty. The function IS_IN_DB, if used inside list brackets [IS_IN_DB(...,...)] will not show the dropdown. This is the correct behavior.
Em quarta-feira, 24 de julho de 2013 20h19min18s UTC-3, Antonis Konstantinos Tzorvas escreveu: > > form = SQLFORM.factory(Field('station', requires=IS_IN_DB(db, ' > station.name'), default=request.args(0)), > Field('start', requires=[IS_NOT_EMPTY(), > IS_IN_DB(db, 'data.year')], default=start), > Field('end', requires=IS_NOT_EMPTY(), > default=end)) > > if i set Field('start', requires=IS_IN_DB(db, 'data.year') then it shows a > dropdown list, but if i do it as above listed, then i can't get the > dropdown list (still it looks for both validations) > > is this a bug or am i doing something wrong? > thanks > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.