> > Massimo code should have been : > > db.reservations.PersonName.default = session.PersonName > > And you must use it, because the way you made it works will prevent your > user to change their name, let say for instance that 2 differents persons > order with the same form, the second person (if it has input his name) will > be override by the content of session.PersonName, that still content the > name of the person one since you pass it to form.vars.PersonName directly... >
Both methods (i.e., setting the field default value before creating the form, or setting the form.vars value after creating the form) should work the same. Two different people using the form won't affect each other because the each user has their own session. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

