[web2py] Re: new to python web2py

2016-08-29 Thread billmackalister
May be try this? def f1(f,v): widget = SQLFORM.widgets.string.widget(f,v,_placeholder='descripción'), return locals() Field("Description", "text", label='alguna cosa',requires=IS_NOT_EMPTY(),default=None,widget = f1), On Sunday, August 28, 2016 at 10:00:55 PM UTC-4, Anthony wrote: >

[web2py] Re: new to python web2py

2016-08-28 Thread Anthony
> > def f1(field,value): > SQLFORM.widgets.string.widget(field,value,_placeholder='descripción'), > > Works. > Field("Description", "text", label='alguna > cosa',requires=IS_NOT_EMPTY(),default=None, lambda f,v: > SQLFORM.widgets.string.widget(f, v, _placeholder='descripción')), > > > But n