I got it. Sorry I just learned about the SELECT statement.

SELECT(*[TR(TD(item)) for item in [1,5,10]], _name="query_limit", 
_type='list:integer'),

Hope this helps someone.

On Monday, June 16, 2014 11:22:50 AM UTC-4, LoveWeb2py wrote:
>
> I have a form I'm using and I just want a user to be able to select the 
> max amount of queries from a pre-selected set, but the dropdown isn't 
> working (I'm sure its because of my code)
>
> Here is what I have:
>
> form = FORM('Choose dates',
>           INPUT(_name="date1", _class=datetime', requires=IS_DATETIME()),
>           INPUT(_name="date1", _class=datetime', requires=IS_DATETIME()),
>           INPUT(_name="date1", requires=IS_IN_SET([1,5,10])),
>           INPUT(_type='submit', _class='submit btn'))
>
> I'm sure this isn't hard but I just want to generate something like this 
> from the controller:
>
> <select class="form-control">
>     <option value="one">One</option>
>     <option value="two">Two</option>
>     <option value="three">Three</option>
>     <option value="four">Four</option>
>     <option value="five">Five</option></select>
>
>
>

-- 
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