I want to make a dropdown list.
regs=db(db.Campana.id > 0).select(orderby='nombre')
form = FORM('Campaña: ',
SELECT([c.nombre for c in regs],
_name='camp'),
INPUT(_type='submit', _value='Mostrar'))
This worked fine :)
On 29 nov, 16:16, DenesL <[email protected]> wrote:
> The IS_IN_SET looks good, but 'Campana' is not an HTML element.
>
> On Nov 29, 3:50 pm, CesarBustios <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi, im trying to use the IS_IN_SET requirement in a form, i'm using:
>
> > form = FORM('Campaña ',
> > INPUT(_type='text', _name='name',
> > requires=IS_IN_SET(['A', 'B', 'C'])),
> > INPUT(_type='submit'))
>
> > I'm not sure this is the right code, can you help me out please?
>
> > Thanks!