In a function I have: db.grp_membership.subgroupID.requires = IS_IN_DB(db(db.grp_subgroup.groupID==groupID), 'grp_subgroup.id', '%(name)s', zero='Selecteer een sub groep', error_message='Sub groep niet in database')
In case of an error this adds a class="generic-widget form-control invalidinput" When I set db.grp_membership.subgroupID.widget = SQLFORM.widgets.options.widget In case of an error this adds a class="generic-widget form-control invalidinput" so without the form-control rendering the options widget ugly. Why is that? Regards, Annet -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.