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 <[email protected]> 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 :)