You can customize the widget:

db.table.field.widget=lambda a,b:StringWidget.widget
(a,b,_class='yourclass')



On Jun 21, 3:59 pm, "mr.freeze" <nat...@freezable.com> wrote:
> How can I append a class to one of the fields in a SQLFORM ? I would
> prefer to do it when the form is generated and not with jQuery on
> document.ready.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to