Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Martin 278 posts 662 karma points
    May 09, 2016 @ 08:50
    Martin
    0

    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

    @inherits Umbraco.Web.Macros.PartialViewMacroPage
    
    @using mySite.Models
    
    @Html.Partial("ContactForm", new ContactModel {ThankYouPage = Model.Content.GetPropertyValue<int>("thankYouPage")})
    

    Any help would be great

    Martin

  • Martin 278 posts 662 karma points
    May 09, 2016 @ 09:18
    Martin
    0

    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

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    May 09, 2016 @ 09:19
    Dennis Aaen
    100

    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

  • Martin 278 posts 662 karma points
    May 09, 2016 @ 09:25
    Martin
    0

    Thanks Dennis, I'll have a look through those and see if it help my problem.

    Thanks

  • 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.

Please Sign in or register to post replies