Hello.
For example.
*<<in Controller>>*
def view():
....
form = SQLFORM(db.table)
form['_id']='*name_for_form*'
....
return dict(form=form)
*<<in View>>*
....
{{=form}}
....
*<<in HTML>> * ---> Yes. OK. Print name id for form
....
<form action="#" enctype="multipart/form-data" id="*name_for_form*"
method="post">
....
But if i use to the next in view:
*<<in View>>*
....
{{=form.custom.begin}}
....
{{ for fieldname in form.table.fields: }} ....
....
{{=form.custom.end}}
....
*<<in HTML>* ---> *In this case no print name id for the form* :(
<form action="#" enctype="multipart/form-data" method="post">
I need name ID form the form using form.custom.begin
What is wrong?
any idea?
Thanks
--
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/groups/opt_out.