Hi!

I have a SQLFORM.factory that define a SELECT. I want multiple=False, but 
is it not working. I can select one o more elements.

Code:

1.    form = SQLFORM.factory(
2.                Field('numero', requires=IS_NOT_EMPTY()), 
3.                Field('fecha', 'datetime', requires=IS_NOT_EMPTY()),
4.                Field('gasto', requires= IS_IN_SET(gastos_list, 
multiple=False), widget=lambda field, value: 
SQLFORM.widgets.multiple.widget(field, value, size=20)), 
5.                Field('unidad', requires=IS_NOT_EMPTY()),
6.                Field('unidades_asignadas'),
7.                Field('operador', requires=IS_IN_SET(operarios_list)),
8.                Field('carta', requires=IS_NOT_EMPTY()),
9.                Field('importe ($)', 'decimal(15,2)', 
requires=IS_NOT_EMPTY()),
10.              Field('observaciones')
       )

Originally the line 4 was:
                Field('gasto', requires= IS_IN_SET(gastos_list)),

But this produce an dropdown combo, instead, I want a SELECT, but with 
multiple=False 

Any Idea? I'm using web2py 2.9.6

Regards.

Regards

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to