This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Feature requests » Multipage Forms (Wizards)
Multipage Forms (Wizards) [message #18949] Thu, 04 January 2007 19:18 Go to next message
pipp  is currently offline pipp
Messages: 33
Registered: December 2006
Member
It would be nice to have a smart -- symfony-style Smile -- way of handling multi page forms (like a wizard or an assistant). Currently my actions file becomes quite messy and redundant in order to achieve this. Should this be a plugin? Confused
Re: Multipage Forms (Wizards) [message #19228 is a reply to message #18949 ] Mon, 08 January 2007 15:54 Go to previous messageGo to next message
pezetgee
Messages: 734
Registered: March 2006
Faithful Member
I'm looking for a solution for that as well, manage multiple forms within one module using one set of actions.

I got to the point of displaying correct content of the forms, but validation doesn't work. It would be good if there was a way to specify validation file to load.
Re: Multipage Forms (Wizards) [message #25989 is a reply to message #18949 ] Thu, 19 April 2007 12:35 Go to previous messageGo to next message
z01d  is currently offline z01d
Messages: 160
Registered: December 2005
Senior Member
Don't know guys, what is the problem with current symfony setup?
One action/template per form/step? Works for me.
Re: Multipage Forms (Wizards) [message #26040 is a reply to message #25989 ] Fri, 20 April 2007 09:55 Go to previous messageGo to next message
pezetgee
Messages: 734
Registered: March 2006
Faithful Member
Quote:

One action/template per form/step?

Yes, that's easy if you hard code your templates.

I needed solution for forms with fields 'generated' by user in runtime.
Since then I've coded a module for that.
As the module was coded for specific requirements of my app I'm not going to release as plugin or snippet - the module ties too much with the app core code.

I'm thinking, however, how to make it more generic and then do a plugin.
Re: Multipage Forms (Wizards) [message #26183 is a reply to message #26040 ] Tue, 24 April 2007 10:31 Go to previous messageGo to next message
Notorious  is currently offline Notorious
Messages: 147
Registered: March 2007
Senior Member
pezetgee, I have created a topic where I need what you've created. Could you give me a hint on how to approach this, or maybe release a bit more info? My topic can be found at http://www.symfony-project.com/forum/index.php/t/6154/. Any help is highly appreciated!
Re: Multipage Forms (Wizards) [message #26214 is a reply to message #18949 ] Tue, 24 April 2007 15:10 Go to previous messageGo to next message
Kodie  is currently offline Kodie
Messages: 3
Registered: April 2007
Location: Katowice, Poland
Junior Member
Hello,

I have just coded class that handles some stuff while creating multi-page forms. It is very alpha version so not everything is completed. It is also my first pluginlike thing so not everything is how it should be. Code need a bit of refactoring as well.

I haven't written any tutorial considering it, but I have attached sample config files (forms.yml should be in config dir and test.second.yml should be in validate.yml).

Class support symfony-like validation. You can use your own template for each form or page.

What isn't still done:
- clean up after finishing form (there are data in session variables)
- support some fields ( like options for select from model )
- default template ( it is only very simple )

It is still very early version and should not be used for real projects. I hope you can give me some advices about it. I'm looking forward for any comments.

Oh, can some one tell me how to easily create package.xml file for plugin?

Thanks in advance,
Kodie

[Updated on: Tue, 24 April 2007 15:22]

Re: Multipage Forms (Wizards) [message #26219 is a reply to message #26214 ] Tue, 24 April 2007 16:03 Go to previous messageGo to next message
cblin  is currently offline cblin
Messages: 265
Registered: July 2006
Faithful Member
before I look at it, could you please tell if you use the session or hidden vars to store the vars between the pages ?

Re: Multipage Forms (Wizards) [message #26220 is a reply to message #26219 ] Tue, 24 April 2007 16:05 Go to previous messageGo to next message
Kodie  is currently offline Kodie
Messages: 3
Registered: April 2007
Location: Katowice, Poland
Junior Member
I use session vars. Could anyone test it and tell me what should I add or change?

Thank you in advance,
Kodie

[Updated on: Fri, 27 April 2007 17:39]

Re: Multipage Forms (Wizards) [message #98248 is a reply to message #18949 ] Thu, 29 April 2010 09:02 Go to previous message
Kaore  is currently offline Kaore
Messages: 5
Registered: April 2009
Location: Dubai
Junior Member
Hi, I just made a post describing a way to do multiple page forms here: http://tech.cibul.org/a-way-to-make-multipage-forms-with-sym fony/
Previous Topic:enhancement for sfWidgetFormDateTime
Next Topic:Agenda/Event Calendar required
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software