Maybe you understand, but you still do not say it right. A list of
validators can have more than one criteria (means validator here) if
you want, but just that it can not be automatically rendered as a drop-
down widget.

And in your case, you just don't need multiple criteria (aka
validator).

On Oct13, 10:30pm, "Michael - afewtips.com" <[email protected]>
wrote:
> Thanks - very much - that's a good point. I think I was focusing more
> on the multiple criteria and not the logic.
> But it's good to know that the lists can only have 1 criteria.
> Michael
>
> On Oct 13, 9:34 am, DenesL <[email protected]> wrote:
>
>
>
> > By design the dropdown is only created on single requires, not lists
> > of them.
>
> > But you only need IS_IN_SET in this case, the field can not be empty
> > unless that is one the options in the set.
>
> > On Oct 13, 6:04 am, "Michael - afewtips.com" <[email protected]>
> > wrote:
>
> > > Hi,
> > > I am trying to use 2 different criteria but when I do, the drop down
> > > list doesn't show up any longer.
>
> > > SQLField('field','string',requires=[IS_NOT_EMPTY(),IS_IN_SET
> > > (['Val1','Val2','Val3'])])
>
> > > A couple of examples I saw used this format.
>
> > > Is this the correct syntax?
>
> > > Thanks
> > > Michael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to