ok figured it out- need to use the BR() function in the form
so

form = FORM(INPUT(_name='fname'),INPUT(_name='lname'),*BR(),*
INPUT(_type='Submit'))
gives the desired result

On Sunday, 17 August 2014 15:37:22 UTC-7, sid datta wrote:
>
>
> HI - I wanted to customize the layout and use FORM.
>
> So a simple example - where I would like to have 2 input boxes and a 3 rd 
> submit button each on its own line. I wanted to do this in the controller - 
> so
>
> form = 
> FORM(INPUT(_name='fname'),INPUT(_name='lname'),INPUT(_type='Submit'))
>
> this puts all the 3 on the same line - how do i split this into different 
> lines??
>

-- 
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