>
> 1) when the form is accessed some of the fields should already contain a 
> hint which is not necessarily the default value of the field
>

i think you can achieve it using default 
e.g.
table.registration_date.default = request.now
 

> 2) the user should select a value from a drop-down list and some other 
> fields should be filled with other hints (the data used for giving these 
> hints should come from another table)
>

you can achieve it when you have the relation on your table and set the 
IS_IN_DB() validation for the field that reference to another table
e.g.
db.define_table('branch', 
Field('address', 'text'), 
format = '%(address)s')

db.define_table('header', 
Field('branch', 'reference branch'), 
format = '%(branch)s')

db.header.branch.requires = IS_IN_DB(db, db.branch.id, '%(address)s')

best regards,
stifan

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to