On Tuesday, June 7, 2011 2:26:45 AM UTC-4, Gwayne aka Mike Veltman wrote: > > > On Monday, June 6, 2011 9:15:27 PM UTC-4, Gwayne aka Mike Veltman wrote: > > > And that was it... > > > > > > Thank you very much. Mmmm, this should go in the book.. > > > > There's also this method of pre-populating a form field: > > http://web2py.com/book/default/chapter/07#Pre-populating-the-form > > Yes I know, but I did read in the mailing list that that was not a smart > idea. > I wasn't aware of that. Why is it not a smart idea?
> Also those vars do not exist before I create the form. So you would get a > error if you do so. > But is there any reason you couldn't make the assignment right after the form is created (i.e., instead of assigning a new default right before the form creation, assign a value to the form var right after creation)? Anthony