Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to add a form by enabling macros in a rich text editor. When I choose the form get the error message in the screenshot below. I'm relatively new to Umbraco. Any help is greatly appreciated!
Hi Steve, Can you please provide us with the code in your partialview?
// Herman
Herman, Thanks for the reply. Here is the code...
@inherits Umbraco.Web.Macros.PartialViewMacroPage
@if (Model.MacroParameters["FormGuid"] != null) { var s = Model.MacroParameters["FormGuid"].ToString(); var g = new Guid(s);
var recordGuid = Guid.Empty; if (string.IsNullOrEmpty(Request.QueryString["recordId"]) == false) { Guid.TryParse(Request.QueryString["recordId"], out recordGuid); } Html.RenderAction("Render", "UmbracoForms", new {formId = g, recordId = recordGuid mode = "form" });
}
I noticed that there is a comma missing:
Html.RenderAction("Render", "UmbracoForms", new {formId = g, recordId = recordGuid ---Here-- mode = "form" });
Does that help?
Duhhhh. Thanks! I missed that. It's working now.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Problem adding a from
I am trying to add a form by enabling macros in a rich text editor. When I choose the form get the error message in the screenshot below. I'm relatively new to Umbraco. Any help is greatly appreciated!
Hi Steve, Can you please provide us with the code in your partialview?
// Herman
Herman, Thanks for the reply. Here is the code...
@inherits Umbraco.Web.Macros.PartialViewMacroPage
@if (Model.MacroParameters["FormGuid"] != null) { var s = Model.MacroParameters["FormGuid"].ToString(); var g = new Guid(s);
}
I noticed that there is a comma missing:
Does that help?
// Herman
Duhhhh. Thanks! I missed that. It's working now.
is working on a reply...