I've got an existing, non umbraco, form which has a fields with user input and a file upload field, when submitted, it sends an email with attachment and redirects to a confirmation page - I need to integrate this into an umbraco site.
This is how I am planning to do it and wanted to know if I'm on the right track
1 - Create a new template for the new page 2 - Create a usercontrol.ascx file using the existing code from the page on my existing site and copy this to the usercontrol directory. 3 - Create a Macro and specify my usercontrol file 4 - Insert the Macro code onto the template
And thats it... but it seems too easy - is there something I am missing here? Will the form be emailed OK still? Is there more umbraco code which I need to include?
Putting an existing form in umbraco
I've got an existing, non umbraco, form which has a fields with user input and a file upload field, when submitted, it sends an email with attachment and redirects to a confirmation page - I need to integrate this into an umbraco site.
This is how I am planning to do it and wanted to know if I'm on the right track
1 - Create a new template for the new page
2 - Create a usercontrol.ascx file using the existing code from the page on my existing site and copy this to the usercontrol directory.
3 - Create a Macro and specify my usercontrol file
4 - Insert the Macro code onto the template
And thats it... but it seems too easy - is there something I am missing here? Will the form be emailed OK still? Is there more umbraco code which I need to include?
Cheers
That should be just fine. You need no reference to umbraco to include a macro.
You could even skip the macro part and just insert it as a regular usercontrol in the masterpage template, as you would on any .aspx page.
Wow - I'll give it a go :)
Do that steps go for any type of form?
Any .Net usercontrol should work this way yes.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.