I'm having some issues with my basic contact form partial.
I had previously set up a basic form following the aptitude tutorial
I've got it all working within a partial macro on a site using version 7.3.4
Now I'm trying to replicate it in version 7.4.2 without success.
If I add the normal partial view into the template, the form works fine, its just when I try to add it into the grid through the partial macro that it fails.
It doesn't give an error.
my macro partial code
@inherits Umbraco.Web.Macros.PartialViewMacroPage
@using mySite.Models
@Html.Partial("ContactForm", new ContactModel {ThankYouPage = Model.Content.GetPropertyValue<int>("thankYouPage")})
Partial Macro for Grid
Hi all,
I'm having some issues with my basic contact form partial. I had previously set up a basic form following the aptitude tutorial I've got it all working within a partial macro on a site using version 7.3.4
Now I'm trying to replicate it in version 7.4.2 without success. If I add the normal partial view into the template, the form works fine, its just when I try to add it into the grid through the partial macro that it fails. It doesn't give an error.
my macro partial code
Any help would be great
Martin
Sorry, Ive got the form working from within the grid and sending, but the validation message is not showing up when the form is in the grid.
Thanks
Hi Martin,
Have you seen this documentation as well? https://our.umbraco.org/documentation/reference/templating/mvc/forms
Or if you are more into videos, then we also have a video chapter about how to create a contact form.
https://umbraco.tv/videos/umbraco-v7/developer/fundamentals/surface-controllers/
Hope this helps,
/Dennis
Thanks Dennis, I'll have a look through those and see if it help my problem.
Thanks
is working on a reply...