I don't see why this requires two forms. Just make the db.tests.questions a 
list:reference field and display a single table via SQLFORM(db.tests). 
You'll get a multi-select box with all the questions as options. If you 
prefer checkboxes, you can do:

    Field('questions', 'list:reference questions',
          widget=SQLFORM.widgets.checkboxes.widget)

To display the questions as desired, be sure to set the "format" attribute 
of the db.questions table. If you need a representation more complex than 
can be handled with Python string formatting, the "format" attribute can be 
a function that returns any string or HTML helper object. Alternatively, 
you can specify the "represent" attribute of the db.tests.questions field.

Even if you don't want to use a list:reference field for some reason, you 
could still construct a single custom table to allow selection of the 
questions along with the other test parameters.

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/d/optout.

Reply via email to