@Ben
I don't think that Field has a _style attribute but in SQLFORM.factory you
can use _style attribute. This style applies for all input Fields in form.
You can try this way.
in_form = SQLFORM.factory(
Field('userid', label='User Id: ', requires=IS_NOT_EMPTY()),
Field('password',
How can you over rider the default CSS in sqlform(.factory) ...
i.e.:
in_form = SQLFORM.factory(
Field('userid', label='User Id: ', requires=IS_NOT_EMPTY(),
_style='width: 50%'),
Field('password', label='Password', type='password',
requires=IS_NOT_EMPTY()),
formstyle='divs'
2 matches
Mail list logo