Thanks, just what I needed.
-Jim
On 8/3/2011 10:46 AM, Anthony wrote:
I don't think that method would work with Crud because the .accepts
method is called within crud.create, which happens before your
form.vars assignment. Instead, try:
db.tablename.description.default = 'default value'
form = crud.create(db.tablename)
Anthony
On Wednesday, August 3, 2011 11:36:59 AM UTC-4, Jim S wrote:
Hi
I'm trying the following:
form = crud.create(db.tablename)
form.vars.description = 'default value for description'
...but the default value for description isn't displayed in my form.
Should this work?
-Jim