On second thought it is not broken. request.vars are processed during form.accepts and form.vars will contain validated values afterwards.
Since in this case field2 is not in request.vars, form.vars.field2 will be set to None. To set the value of field2, without it coming in thru request.vars (i.e. field2 is not in the form), one should use onvalidation to change it after it has been validated and before it is written out to the DB. On Nov 2, 10:45 am, Philip Kilner <[email protected]> wrote: > Hi, > > On 02/11/2011 13:59, DenesL wrote: > > > > >> form.vars.field2 = 'BBB' > > > This should work to pre-populate the value of field2 with 'BBB' but it > > seems to be broken in 1.99.2 > > I'm so glad you said that - this was one of the things I tried in > troubleshooting my "Passing values to CRUD create from controller" > issue, and I was completely baffled as to why it was not working! > > -- > > Regards, > > PhilK > > 'a bell is a cup...until it is struck'

