Version: Umbraco 14.1
With Macros being removed, we are switching over to utilizing Blocks/Elements to handle the ability for authors to add forms to their pages. We have created the form, the element (form and theme pickers) and render them out in a partial view with the proper name. If we just print out a
tag, it does render, so we know the view is functional. When we try to output using the tag helper
<div><umb-forms-render form-id="@Model.Content.Form.Value" theme="@Model.Content.Theme" exclude-scripts="true" /></div>
It doesn't render anything. When we try to render out with the Component.InvokeAsync:
@(await Component.InvokeAsync("RenderForm", new { formId = Model.Content.Form, includeScripts = true }))
We get a system.stackoverflowexception error. We've also tried to hard code these values in
@(await Component.InvokeAsync("RenderForm", new { formId = new Guid("c875c7ff-1789-422c-8688-a1abae5bd707"), theme = "themename", ThemeincludeScripts = true }))
We get the same stackoverflowexception error.
Has anyone run into this or is there a way to get a better/more informative error? The current documentation (
https://docs.umbraco.com/umbraco-cms/fundamentals/backoffice/property-editors/built-in-umbraco-property-editors/rich-text-editor/rte-blocks) seems to be a clone of v12/13 which still references Macros (which should be gone now).