widget=SQLFORM.widgets.options.widget

29 views
Skip to first unread message

Annet

unread,
May 24, 2015, 12:50:56 PM5/24/15
to web...@googlegroups.com
I have a field definition containing: widget=SQLFORM.widgets.options.widget
When I submit a form containing this widget and the form contains an error
the select is rendered ugly. To solve the issue I added the following line of
code in elif form.errors:

form.element('select[name=socialMediaID]').update(_class='generic-widget form-control')

I wonder whether I am the only one experiencing this problem and whether it could
be repaired within the options widget.


Kind regards,

Annet

Reply all
Reply to author
Forward
0 new messages