Ah, I see now. Thanks
On Mon, Jun 24, 2013 at 10:50 AM, Anthony <abasta...@gmail.com> wrote: > No, 3 columns means: > > Col 1 Col 2 Col 3 > label widget comment > > It's still one field per row. When in doubt, try it out. :-) > > Anthony > > > On Monday, June 24, 2013 10:26:08 AM UTC-4, Tom Russell wrote: > >> Thanks again for the info. >> >> I guess I still do not get it though if I set my formstyle to table3cols >> would'nt my form at least be laid out like: >> >> Name Address City >> State >> >> Or am I not looking at this correctly? >> >> >> On Mon, Jun 24, 2013 at 10:16 AM, Anthony <abas...@gmail.com> wrote: >> >>> Your best bet is to look at how the built-in ones work, starting here: >>> https://code.google.com/**p/web2py/source/browse/gluon/**sqlhtml.py#752<https://code.google.com/p/web2py/source/browse/gluon/sqlhtml.py#752>. >>> Copy the one of those that is closest to what you want and modify it as >>> necessary. >>> >>> def myformstyle(): >>> [custom code here] >>> >>> form = SQLFORM(..., formstyle=myformstyle) >>> >>> Anthony >>> >>> >>> On Monday, June 24, 2013 10:07:49 AM UTC-4, Tom Russell wrote: >>> >>>> Thanks for the responses. >>>> >>>> The formstyle looks interesting but I cannot make heads or tails out of >>>> the way to use it. Are there any examples of this some place? >>>> >>>> Thanks >>>> >>>> >>>> On Mon, Jun 24, 2013 at 9:55 AM, Anthony <abas...@gmail.com> wrote: >>>> >>>>> I assume that means you are relying on a generic view to display your >>>>> table. If so, you can instead create a non-generic view (which you should >>>>> probably do anyway), or you can build the form DOM on the server using >>>>> web2py HTML helpers (probably not the way to go). The custom formstyle >>>>> option also does not require any HTML coding. >>>>> >>>>> Anthony >>>>> >>>>> >>>>> On Monday, June 24, 2013 9:35:31 AM UTC-4, Tom Russell wrote: >>>>> >>>>>> Thanks for the response. So now I am really confused because I have >>>>>> no idea where to put this code if I am using a SQLFORM.factory? >>>>>> >>>>>> Basically I just want to add row fluid to make the layout a little >>>>>> easier to navigate. I do not have a html file to set this code in for >>>>>> this >>>>>> form. >>>>>> >>>>>> Thanks. >>>>>> >>>>>> >>>>>> On Mon, Jun 24, 2013 at 9:04 AM, Anthony <abas...@gmail.com> wrote: >>>>>> >>>>>>> http://web2py.com/books/**defaul****t/chapter/29/07#Custom-**forms<http://web2py.com/books/default/chapter/29/07#Custom-forms> >>>>>>> >>>>>>> I don't think it's in the book yet, but you can also create a custom >>>>>>> formstyle if you need to use the layout in multiple places: >>>>>>> https://groups.google.******com/d/msg/web2py/QmoRmapiOwA/**t**** >>>>>>> ZqeEbii6QgJ<https://groups.google.com/d/msg/web2py/QmoRmapiOwA/tZqeEbii6QgJ> >>>>>>> >>>>>>> Anthony >>>>>>> >>>>>>> >>>>>>> On Monday, June 24, 2013 8:53:16 AM UTC-4, Tom Russell wrote: >>>>>>>> >>>>>>>> I have a SQLForm and use the formset DIV for it but its not what I >>>>>>>> really want. Rather than having just one column with all of the fields >>>>>>>> required to be filled out, how do I set it so its like 3-4 columns? >>>>>>>> >>>>>>>> For example: >>>>>>>> >>>>>>>> Name Address City State >>>>>>>> >>>>>>>> Instead of: >>>>>>>> >>>>>>>> Name >>>>>>>> Address >>>>>>>> City >>>>>>>> State >>>>>>>> >>>>>>>> Thanks. >>>>>>>> >>>>>>> -- >>>>>>> >>>>>>> --- >>>>>>> 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+un...@**googlegroups.com. >>>>>>> >>>>>>> For more options, visit https://groups.google.com/**grou**** >>>>>>> ps/opt_out <https://groups.google.com/groups/opt_out>. >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> -- >>>>> >>>>> --- >>>>> 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+un...@**googlegroups.com. >>>>> For more options, visit >>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out> >>>>> . >>>>> >>>>> >>>>> >>>> >>>> -- >>> >>> --- >>> 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+un...@**googlegroups.com. >>> For more options, visit >>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>> . >>> >>> >>> >> >> -- > > --- > 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. > > > -- --- 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.