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:
>
>
> 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
2 matches
Mail list logo