Creating a New Page With Form Submission
Permalink
Hi,
Is there a way to automatically create a new page when a user submits a Form?
Trying to create some user generated content.
*Sorry if this has been already been asked/answered I've scoured the net, but couldn't find anything yet :/.
-Garen
Is there a way to automatically create a new page when a user submits a Form?
Trying to create some user generated content.
*Sorry if this has been already been asked/answered I've scoured the net, but couldn't find anything yet :/.
-Garen
I did precisely this for an application which accepts a doctor's prescriptions and then presents a searchable grid for those and a link to the new page recreated from that single page data entry.
But, there's some complexity there, which was required because of the format we were following.
What I'd suggest is the following, which would be much simpler.
1. Use the Designer Content block to identify the kinds of information that you want to capture on the form. This is a wonderful free block by Jordan Lev:http://www.concrete5.org/marketplace/addons/designer-content/... .
2. Create a page type which hardcodes the Designer Content block you've created.
3. In the controller of the registration form after the information has been submitted, create a new page in the website and then perform a redirect to that page.
http://www.concrete5.org/documentation/developers/pages/overview...
This approach, if it works for you, uses standard C5 capability and only a small amount of custom programming.
HTH