Thanks Alan - I'm still trying to get the intended result: Bootstrap buttons that function like radio buttons. I studied fields being brought in as normal radios, and like you suggested added the names: <div id="thetable_thefield" name="thefield" class="btn-group" data-toggle="buttons-radio"> <input type="radio" name="thefield" value="first" class="btn btn-primary radio"></input> <input type="radio" name="thefield" value="second" class="btn btn-primary radio"></input> </div>
which DOES work until you change the type to button: <div id="thetable_thefield" name="thefield" class="btn-group" data-toggle="buttons-radio"> <input type="button" name="thefield" value="first" class="btn btn-primary radio"></input> <input type="button" name="thefield" value="second" class="btn btn-primary radio"></input> </div> at which point the value is NOT passed in the form. Is there a simple way to copy/tweak the radio widget, or convince it to act the same for a type=button? I'm afraid creating a new widget from scratch is a bit beyond my web2py skills, at least from what I've read in the manual<http://web2py.com/books/default/chapter/29/07#Widgets> ... thank you for your help, Dave On Sunday, January 12, 2014 4:41:14 AM UTC-5, Alan Etkin wrote: > > hoping someone can point me in the right direction, as the post title says >> I want to use a btn-group >> > > Try using name="opt" for the input element. However, it would be better to > use a custom widget. > > > http://www.web2py.com/books/default/chapter/29/07/forms-and-validators#Widgets > -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.