[web2py] Re: A suggestion on SQLFORM

2012-10-15 Thread VP
Thanks. On Monday, October 15, 2012 12:44:01 PM UTC-5, Massimo Di Pierro wrote: > > There is a way: > > 1) remove the dropdown while still doing validation serverside: > > db.order.product.requires = [IS_IN_DB(db,'product.id','%(name)s')] > > (By having the validator in a list, it will not cr

[web2py] Re: A suggestion on SQLFORM

2012-10-15 Thread Massimo Di Pierro
There is a way: 1) remove the dropdown while still doing validation serverside: db.order.product.requires = [IS_IN_DB(db,'product.id','%(name)s')] (By having the validator in a list, it will not create the dropdown) 2) add autocomplete: db.order.product.widget = SQLFORM.widgets.autocomplete(re