OK!!! This is embarrassing!!! I think i have figured out what the problem 
is! I have defined styling for all tables that are used in my application, 
I want to believe that formstyle places the form its styling inside a table 
therefore my table styling affected hence the box-shadow and the border! 
Sorry! False alarm!

Mostwanted

On Thursday, January 10, 2019 at 7:43:22 AM UTC+2, mostwanted wrote:
>
> Is there a way to edit and customize the default *formstyle* styling? I 
> am trying to place a form label on top of my sqlform.factory form with 
> formstyle='table3cols' & i am able to get the desired results but there is 
> extra stuff i do not want, my form now has a border around it and a 
> box-shadow which both of them i never defined, i want them out! What do it 
> do?
> *CODE:*
> def search():
>     form=SQLFORM.factory(Field('SEARCH', requires=IS_NOT_EMPTY(), widget = 
> lambda field, value: SQLFORM.widgets.string.widget(field, value, _class=
> 'my-string', _id='searching', _placeholder='SEARCH BY COMPANY NAME')), , 
> formstyle='table3cols')
>     searchBtn=form.element('input',_type='submit')
>     searchBtn['_style'] = 'display:none;'
>     if form.accepts(request):
>         tokens=form.vars.SEARCH.split()
>         query=reduce(lambda a,b:a&b, [db.Client_Details.company.contains(k
> ) for k in tokens])
>         company=db(query).select(orderby=db.Client_Details.company)
>     else:
>         company=[]
>     return locals()
>
>
> Mostwanted
>

-- 
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.

Reply via email to