i've tested using SQLFORM.widget after submit (form validation) the size of 
the form field is changed smaller than the form field size before submit, 
how to create form field size remain same before and after submit (form 
validation) ?
e.g.
*models/db.py*
def on_define_address(table): 
table.address.requires = IS_NOT_EMPTY()
table.address.widget = lambda field,value: 
SQLFORM.widgets.text.widget(field, value, _autofocus = True, 
  _placeholder = T('Address should be filled') )

db.define_table('address', 
Field('address', 'text'), 
on_define = on_define_address, 
format = lambda r: '%s' % (r.address) )

thanks and best regards,
stifan

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to