We're working on a migration from v7 to v10. Part of that was migrating our grid content using uSync.Migrations which worked great for rich text and images, but one thing that's not working is our grid form picker. I've tried following the documentation for forms front-end and rendering, but the form is still not displaying. I've created the block element doc type as well as the corresponding partial view, I've included that code below. Inserting a form through the rich text editor works, but how do you display a form in the block list?
Debasish I believe I've got this working, at least on our test site. The following hard codes the theme and exclude scripts, but I think it could be modified to pass those values through. Let me know if you get something better figured out. It seems strange to use the rendermacroasync function even though my block element simply uses the forms picker.
Render Forms in Block Element
We're working on a migration from v7 to v10. Part of that was migrating our grid content using uSync.Migrations which worked great for rich text and images, but one thing that's not working is our grid form picker. I've tried following the documentation for forms front-end and rendering, but the form is still not displaying. I've created the block element doc type as well as the corresponding partial view, I've included that code below. Inserting a form through the rich text editor works, but how do you display a form in the block list?
Im getting the same error. Were you able to resolve this Tom?
Debasish I believe I've got this working, at least on our test site. The following hard codes the theme and exclude scripts, but I think it could be modified to pass those values through. Let me know if you get something better figured out. It seems strange to use the rendermacroasync function even though my block element simply uses the forms picker.
Tom I was able to get it to work. Here is what I had to do
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<>
Yep, that worked for me and feels correct compared to using the macro. For anyone that runs into this here's my final element code.
is working on a reply...