Press Ctrl / CMD + C to copy this to your clipboard.
Copied to clipboard
Flag this post as spam?
This post will be reported to the moderators as potential spam to be looked at
Topic author was deleted
Oct 04, 2016 @ 13:13
Need help passing the correct model item when making contact form.
the error.
Inserting partial view (contact form) into master page
Also, is it a requirement to have a partial page within a partial page and then that inside a master page when making contact form? I noticed that I cannot add @using model reference when "inherited" keyword is used (seems to be always present in a partial page) at the top...which made me confused because I need to reference my model...
If you have access to Umbraco TV, then you should have a look at the Surface Controller chapter, in the series of videos we are showing how to build your on Contact form.
Topic author was deleted
Need help passing the correct model item when making contact form.
the error. Inserting partial view (contact form) into master page
Also, is it a requirement to have a partial page within a partial page and then that inside a master page when making contact form? I noticed that I cannot add @using model reference when "inherited" keyword is used (seems to be always present in a partial page) at the top...which made me confused because I need to reference my model...
Hi Maciej,
If you have access to Umbraco TV, then you should have a look at the Surface Controller chapter, in the series of videos we are showing how to build your on Contact form.
https://umbraco.tv/videos/umbraco-v7/developer/fundamentals/surface-controllers/
Perhaps this documentation can help you too https://our.umbraco.org/documentation/reference/templating/mvc/forms
Hope this helps,
/Dennis
is working on a reply...