Can you explain more?

On Jun 15, 9:51 pm, DenesL <denes1...@yahoo.ca> wrote:
> Thinking about about a specific use case I came across the need for
> nested forms.
> In the first form one field controls which kind of form is presented
> next.
>
> form1=SQLFORM(...)
> if form1.accepts(...):
>   form2=SQLFORM(db.[form1.vars.formtype]):
>   if form2.accepts(...):
>
> other form1 & form2 ifs/elifs/elses follow here.
>
> The view can easily test which form is returned and only display that
> one.
>
> question: is there a better/easier way to nest forms?
>
> Thanks,
> Denes.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@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