Re: [web2py] Over ride SQLFORM defaults

2019-02-11 Thread sandeep patel
@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',

[web2py] Over ride SQLFORM defaults

2019-02-11 Thread Ben Duncan
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'