Use IS_IN_DB(..., multiple=(1, 1000)). The "multiple" argument to IS_IN_DB can be a tuple specifying the minimum and maximum number of items to be selected (note, you should set the maximum to a value you know will be above the maximum number of items in the list, unless you want to restrict it to something lower).
Anthony On Sunday, June 2, 2013 8:14:19 AM UTC-4, BlueShadow wrote: > > when one has a database field with a list:reference type it can be empty. > For quite a few scenarios this is undesirable. but if you use requires > is_not_empty() it first of all doesn't show the reference table entries. > And it still allows you to leave the field empty. > > -- --- 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.