Not sure I totally understand. But you can redefine your requires depending of the context. So let say you define a global requires at the model level, you can override this requires in your controller depending of conditions...
Richard On Wed, Aug 21, 2013 at 2:14 PM, Annet <[email protected]> wrote: > I have a validator: > > requires=IS_EMPTY_OR(IS_IN_DB(db,'plugin.id','%(name)s',orderby='plugin.id > ',multiple=(1,5))) > > When the field is empty it contains an empty list [] when there are > plugins selected the field contains > for example: [2L, 4L, 6L, 7L], how do I revert back to an empty list, in > appadmin and in a custom form? > > At the moment always one plugin remains selected in the options. > > > Kind regards, > > Annet > > -- > > --- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

