> Does anybody know how to do it for a select box?
> Select box is rendered because it's a foreign key that reference another table.

After you have created the form but before if form.accepts define your default.

form = SQLFORM(db.......)

form.vars.type = 'cleaner'

if form.accepts......

This should work.


Kenneth


Reply via email to