Version: Umbraco 12
We have an element that accepts a Form Selector and a Theme Selector. We then render it in a blocklist using the following syntax:
@(await Component.InvokeAsync("RenderForm", new { formId = Model.Form, theme = Model.Theme, includeScripts = false }))
This does render the form as expected, however, when we submit it, we get the following error:
System.InvalidOperationException: Could not load form with id 00000000-0000-0000-0000-000000000000
at Umbraco.Forms.Web.Controllers.UmbracoFormsController.HandleForm(FormViewModel model)
at lambda_method826(Closure, Object, Object[])
We've also tried the following syntax
<umb-forms-render form-id="@Model.Form.Value" theme="@Model.Theme" exclude-scripts="false" />
This resulted in the same issue (displays fine, but fails on submission with the same error).
When we use the macro inside the richtext editor, it works without issue. I've removed the only custom form workflow we had going to confirm that wasn't affecting anything. Any thoughts what else could cause this?