def form1(): form=FORM(....) if form.accepts(request.vars): session.vars=form.vars redirect(URL(r=request,f='form2')) return dict(form=form)
def form2(): if not session.vars: redirect(URL(r=request,f='form1')) form=FORM(....) if form.accepts(request.vars): session.vars.update(form.vars) redirect(URL(r=request,f='form3')) return dict(form=form) def form3(): if not session.vars: redirect(URL(r=request,f='form1')) form=FORM(....) if form.accepts(request.vars): session.vars.update(form.vars) ### do something with session.vars redirect(URL(r=request,f='somewhere')) return dict(form=form) On Apr 14, 9:55 am, Jose <jjac...@gmail.com> wrote: > I must insert information to the same table from three different > SQLFORMs, as if it was a wizard. > > form1 -> form2 -> form3. > > In every form I force a field determined to take certain value. > > Except this field the others can be the same that the previous form. > > I want is to be able to fill the form with the information of the > previous one and that the user accepts or changes as believes it > suitably. > > Regards > Jose --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---