Re: [web2py] Re: py4web - form field default - appears to not be working for me

2020-01-22 Thread Jim Steil
Yes, that did the trick! Thanks Massimo On Wed, Jan 22, 2020 at 12:21 AM Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > can you try this? > > form = Form() > if not form.submitted: form.vars.update({field.name:field.default for > field in form.table if field.default}) > > Maybe I

[web2py] Re: py4web - form field default - appears to not be working for me

2020-01-21 Thread Massimo Di Pierro
can you try this? form = Form() if not form.submitted: form.vars.update({field.name:field.default for field in form.table if field.default}) Maybe I can make this default behavior? On Tuesday, 21 January 2020 18:27:02 UTC-8, Jim S wrote: > > Sorry for all the py4web noob questions > > I