Hi All I have a model file :
db.define_table('food', Field('parent', 'reference food', label=T('Parent')), Field('name', unique=True, notnull=True, label=T('Name')), format='%(name)s' ) Let's imagine I have some records in my db (fruits, vegetables, ...) In my controller, I create a form with form = crud.update(db.food,food,next=URL('default','index')) On my view, the "parent" field of the form is rendered as a "select" field containing for example : *fruits tomatoes banana apple potatoes vegetables* But I would like to see something like : *<root> | |___fruits | |___banana | |___apple |___vegetables |___potatoes |___tomatoes* I thought I could change the representation of my field using the "represent" attribute db.food.parent.represent = lambda v: ... But the representation of the field doesn't change in the form. I wonder if I'm in the right direction, or if there an other way to do what I'm trying...? Thank you -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.