In that case you have to pass a set instead of db to IS_IN_DB look in the
book it clear...

Richard

On Wed, Nov 2, 2011 at 11:55 AM, Bianca Cadaveri
<[email protected]>wrote:

> Thank you very much !
>
> Could I also ask if it is possible to forbid one specific value for a
> field ?
>
> BC
>
>
>
> On 2 nov, 15:45, Anthony <[email protected]> wrote:
> > You can try IS_EMPTY_OR(IS_IN_DB(...)) (also works with IS_IN_SET). You
> > might also want to specify a 'zero' option.
> > Seehttp://web2py.com/book/default/chapter/07#Validators.
> >
> >
> >
> >
> >
> >
> >
> > On Wednesday, November 2, 2011 10:35:26 AM UTC-4, Bianca Cadaveri wrote:
> >
> > > Hello,
> >
> > > I would like my users to be able to choose nothing, if they want to,
> > > in a drop-down menu. The drop-down menu is generated using SQLFORM.
> > > By default the validator does not accept that my users choose nothing.
> > > How to change that ?
> >
> > > Thank you very much,
> > > Bianca
>

Reply via email to