On May 31, 6:55 pm, Marc Aymerich <[email protected]> wrote: > Hi!, > I'm writing an admin action. > This action needs to collect some information before execute the "final > task". > In order to collect this information the user should fill 3 consecutive > forms, (once they submitted one, another is rendered). > > My question is, > How can I store the form fields state submitted on each form, and retrieve > this fields states on the final form, before execute the 'final task'?
This is a well-known problem, with 2 well-known solutions: 1/ store the state in hidden fields or 2/ use sessions. The form-wizard contrib app mentionned by DrBloodmoney uses the first approach, which makes it "more general" since you can use it without having to resort to sessions. OTHO, I didn't find it quite as easy to use and flexible as I would have liked, specially when I had to fork it to give users the possibility to navigate backward. You should nonetheless give it a try first and see if it works for you. If it doesn't, you may want to roll your own session-based solution. HTH -- You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en.

