Post Form To New "Page" and Pre-populate with Form Data

Topics: Customizing Orchard, Troubleshooting
Oct 11, 2012 at 9:55 PM

Are there any clever ways within Orchard to leverage Orchard.CustomForms so that we POST the data to a new page, and scrape that data off to pre-populate items on the next page?

Page 1 --> Fill out Name input --> Submit/POST --> Page 2 --> {capture $Name} --> Populate field with Name.

Oct 16, 2012 at 3:52 PM

Does anyone have any ideas? Even maybe by creating a custom widget and not using Orchard.CustomForms? We've hit a bit of a mental road block and need some guidance or suggestions.

Oct 27, 2012 at 8:53 AM

You could always create a controller that handles post requests.

Oct 28, 2012 at 10:59 AM

That sounds more like a Wizard. The approach Sipke describes is the normal approach to solve such a problem.

You might also want to try and use the life cycle of the Handler to do something clever.