hugopeek / romanesco-patterns

0 stars 0 forks source link

Multi-page forms #45

Closed hugopeek closed 4 years ago

hugopeek commented 8 years ago

Can probably be accomplished by using the cbGetFieldContent calls in combination with FormItRetriever to collect the input from the previous page.

Put these values in hidden fields, and replace the submit button with a next page button.

Would be really cool if there were a status indicator on top of the form! Something like: http://semantic-ui.com/elements/step.html#ordered

Biggest problem / limitation I can think of now.. Validation will occur on every page, so you can't go to the next page without validating all required fields. So no peeking through the form to see what's there.

Also, how will the auto generated email template know that it shouldn't fetch the JSON for 1 page, but for multiple..? And which ones?

And will you be able to go back through pages already filled in, while keeping all their values? Probably, by keeping on tossing the fields back and forth through FormItRetriever.. But maybe that sounds a little too good to be true?

hugopeek commented 8 years ago

http://forums.modx.com/thread/20183/how-to-multiple-page-form-in-modx-w-formit