Re: [web2py] Re: How to add a hidden field

2012-08-20 Thread Simon Carr
Cheers Villas, As I am learning, I will give both methods a try. Simon On 20 August 2012 21:42, villas wrote: > Something like this... > SQLFORM(, hidden=dict('post_id'='999')) > > Hope that is what you meant. > > > > On Monday, August 20, 2012 9:23:47 PM UTC+1, Simon Carr wrote: >> >> I

Re: [web2py] Re: How to add a hidden field

2012-08-20 Thread Simon Carr
Thanks niphold and thanks for pointing out the missing () Simon On 20 August 2012 21:32, Niphlod wrote: > take a look in the book > http://web2py.com/books/default/chapter/29/7#Hidden-fields. > > If you have a page where the post is shown and the comments are "at the > bottom" (so you have the

[web2py] Re: How to add a hidden field

2012-08-20 Thread villas
Something like this... SQLFORM(, hidden=dict('post_id'='999')) Hope that is what you meant. On Monday, August 20, 2012 9:23:47 PM UTC+1, Simon Carr wrote: > > I am still writing my learning application a Blog. I have now created a > function in my controller to produce a form for users to

[web2py] Re: How to add a hidden field

2012-08-20 Thread Niphlod
take a look in the book http://web2py.com/books/default/chapter/29/7#Hidden-fields. If you have a page where the post is shown and the comments are "at the bottom" (so you have the post_id somewhere in the controller or in the request.args or vars) you can still do something like db.comments.p