Copied to clipboard

Flag this post as spam?

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


  • Vincent Ashby-Smith 67 posts 196 karma points
    Mar 17, 2015 @ 18:10
    Vincent Ashby-Smith
    0

    Issue rendering form in Razor view

    Hi guys,

    I'm tearing my hair out here. I've just upgraded to Umbraco 7.2.2 and migrated from Contour to Umbraco Forms. I can render a form if i insert it via the macro in a rich text editor, but if i try and render a form directly in a view using the following code:

    @Umbraco.RenderMacro("umbracoformsRenderForm", new {FormGuid = Umbraco.Field("sidebarForm")})

    The form wont render, i just get <Macro: (,)>

    enter image description here

    sidebarForm field is a Form picker field. Any ideas?

  • Vincent Ashby-Smith 67 posts 196 karma points
    Mar 17, 2015 @ 18:41
    Vincent Ashby-Smith
    100

    Found the answer, for some reason when picking the macro it was inserting "umbracoformsRenderForm" this should be "RenderForm"

  • 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