I just read this again... Maybe you want some kind of ajax triggred computed field??
I mean you want to show to your user that base on the birth date they add entered that the age is X before the even submit the form. So, to me it is a client side processing base on the field input. Richard On Wed, Apr 18, 2012 at 12:51 PM, simon <[email protected]> wrote: > I have a person table with date of birth and a compute field for age. I > want my form to show date of birth (writable) and age (read only). When the > form is accepted I reread the table and create a new SQLFORM with the new > age. > > However I cannot get this to work. > > - On a SQLFORM the age does not show up by default even if > readable=True. > - If I include age in the "fields" parameter and writable=True then it > shows up but is editable. > - If I set writable=False then it does not recalculate the computed > field. > > Wouldn't it be better for computed fields to show up if readable=True; > and to be updated even if writable=False? > > > > >

