you can do:
options=[str(x) for x in range(10)]
form=FORM(SELECT(*options,_name='test',_multiple='multiple'),INPUT
(_type='submit'))
or you can do:
from gluon.sqlhtml import form_factory
options=[str(x) for x in range(10)]
form=form_factory(SQLField('test',requires=IS_IN_SET
(options,multiple=True))
Massimo
On Feb 13, 11:59 am, dewes <[email protected]> wrote:
> Hello there, I'm new at web2py, and I have a question. When making a
> form with FORM() how I do a <select multiple name="test"> ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---