Re: [web2py] Re: Forms with horizontal fields

2012-05-28 Thread Johann Spies
On 25 May 2012 22:07, pbreit pbreitenb...@gmail.com wrote: I do all my forms custom: http://web2py.com/books/default/chapter/29/7#Custom-forms On Friday, May 25, 2012 6:45:21 AM UTC-7, orsomannaro wrote: I'm starting with Web2Py. To arrange/group them logically I need to display them in

Re: [web2py] Re: Forms with horizontal fields

2012-05-28 Thread orsomannaro
On 28/05/2012 09:23, Johann Spies wrote: You can also look at the solidform plugin: http://dev.s-cubism.com/plugin_solidform Great! Thank you!

[web2py] Re: Forms with horizontal fields

2012-05-25 Thread Massimo Di Pierro
You need to do it using jquery. jQuery(function(){ var one = jQuery('#table_field1'); var two = jQuery('#table_field2'); one.hide(); two.change(function(){ if(two.val()=='somevalue') one.slideDown(); }); }); On Friday, 25 May 2012 08:45:21 UTC-5, orsomannaro wrote: I'm starting

Re: [web2py] Re: Forms with horizontal fields

2012-05-25 Thread orsomannaro
On 25/05/2012 16:08, Massimo Di Pierro wrote: You need to do it using jquery. Thank you Massimo. And for the other things? There is no way?

Re: [web2py] Re: Forms with horizontal fields

2012-05-25 Thread Niphlod
to hide something , you can set it as readable = False, or keep a list of fields to display and pass it to SQLFORM as a parameter. As for the arrangement, try to create a small function to serialize the form in the view: def myform(form, style='default'): ... return DIV() and

Re: [web2py] Re: Forms with horizontal fields

2012-05-25 Thread orsomannaro
On 25/05/2012 18:22, Niphlod wrote: to hide something , you can set it as readable = False, or keep a list of fields to display and pass it to SQLFORM as a parameter. As for the arrangement, try to create a small function to serialize the form in the view: Thank you very much Niphlod. I'm

[web2py] Re: Forms with horizontal fields

2012-05-25 Thread pbreit
I do all my forms custom: http://web2py.com/books/default/chapter/29/7#Custom-forms On Friday, May 25, 2012 6:45:21 AM UTC-7, orsomannaro wrote: I'm starting with Web2Py. I have a model with a large number of fields and I need to display them all together in the view. To arrange/group