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: (,)>
sidebarForm field is a Form picker field. Any ideas?
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:
The form wont render, i just get
<Macro: (,)>
sidebarForm field is a Form picker field. Any ideas?
Found the answer, for some reason when picking the macro it was inserting "umbracoformsRenderForm" this should be "RenderForm"
is working on a reply...