with t2:

In controller:

def page1()
  form1=t2.update(...)
  form2=t2.update(...)
  form3=t2.update(...)

  return dict(form1=form1,form2=form2,form3=form3)

in view page1.html:

{{=form1}}
{{=form2}}
{{=form3}}


will show each form with its own submit button

but you will only be able to submit one form at at time

-wj

On Fri, Jan 23, 2009 at 3:16 PM, jlegler <[email protected]> wrote:
>
> I am creating a tool that has a custom built form on the top of a page
> that, when submitted, creates an entry in the database and then
> displays a new partially filled in custom built form in a list of
> forms below.  All of the partially filled in forms display and need to
> be able to be filled out and submitted individually.  The problem I am
> running into is that those forms are dynamically generated and i am
> not sure how to manually set _formname dynamically.  No matter what I
> do they all have the same formname and I don't know how to change
> that.  Does anyone have any suggestions on the best way to approach
> this issue with web2py?  Is there a better way to tackle this
> problem?  The formkey seems to be generated based on the table name
> and I can't change that obviously.  I feel like there should be a
> relatively easy way to accomplish this but I can't find it anywhere in
> the book.  Any help would be appreciated.  Thanks so much.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to