I want to add some elements to a form_factroy form while leaving the
other form elements as they are.

My controller looks something like
def test():
  form = form_factory(
                Field('category'),
                Field('priority', 'integer', requires=IS_IN_SET([(1,'1
- Lowest'),(2,'2'),(3,'3'),(4,'4'),(5,'5 - Medium'),(6,'6'),(7,'7'),
(8,'8'),(9,'9'),(10,'10 - Highest')], zero=None), default=1, label=
"Change Priority"),
  )
...

return dict(form = form, things = db(db.things.id>0).select())

My test.html view looks something like
{{=form.custom.begin}}
{{for item in things:}}
{{INPUT(_type='checkbox',name='thing_%s'%thing.id) ) }} <-these are
the addidtional custom elements
{{pass}}
now i want to render the form elements (category and priority) - but
how?
{{=form.custom.end}}

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to