Try

Field(..., requires=IS_IN_SET(...))


On Friday, October 21, 2011 1:51:09 PM UTC-4, horridohobbyist wrote:
>
> I don't know how to add a SELECT field (dropdown list) to 
> SQLFORM.factory. I want to create a form without a database table, and 
> one of the fields should be a dropdown list with a fixed set of items. 
>
> The sample syntax I've seen is like... 
>
> SQLFORM.factory(db.table, 
>     Field(...), 
>     Field(...), 
>
> How do you make one of those "Field"s a SELECT? 
>
> Thanks, 
> Richard

Reply via email to