It just adds a class to the input. How you render that class is up to you. On Thursday, 16 October 2014 03:38:53 UTC-5, Annet wrote: > > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

