This should do it: db.mytable.myfield.requires=IS_IN_SET(['a','b','c']) db.mytable.myfield.default='b'
let me know if it does not. Massimo On Oct 14, 10:56 am, Keith Edmunds <[EMAIL PROTECTED]> wrote: > Hi > > I'm using SQLFORM; one of the fields is foreign key and is thus presented > as a combo (SELECT) box. All works just fine. > > How can I change the default (SELECTED) item in the combo box? > > Thanks, > Keith --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---