I like to define def HiddenField(*a,**b): a['writable']=b['readable']=False
and use db.defiend_table('mytable',Field('name'),HiddenField('manager')) On Sep 17, 6:07 am, "Martin.Mulone" <mulone.mar...@gmail.com> wrote: > To hide a field: > Field('out','boolean',writable=False,readable=False) > > And computed fields in > book:http://web2py.com/book/default/chapter/06#Computed-Fields > > On 17 sep, 05:58, Fabio Alessandro Locati <floc...@grimp.eu> wrote: > > > Hi, > > I'm trying to make a form with a hidden field, but I haven't found the way > > to do it :(. > > > I have a table: > > db.define_table('partners', > > Field('name','string'), > > Field('out','boolean')) > > > I want to ask to the user the name of the partner and, based on the name of > > the page, the value of 'out'. I was thinking into making two different pages > > one that has - at code level - out=1 and the other one that had out=0. How > > can I do this, without showing to the user the existence of the 'out' field? > > > Thanks :) > >