Submitting Umbraco form results in 404 to /umbraco/RenderMvc
I'm using an Umbraco Forms form on my view, added by @Umbraco.RenderMacro("renderUmbracoForm", new { FormGuid = Umbraco.Field("testform"), FormTheme = "Default", ExcludeScripts = "0" }).
When submitting the form, I end up at a 404 page Requested URL: /umbraco/RenderMvc. Why is that? The form action points to the page itself.
Inspecting the webexception: A public action method 'MyPage' was not found on controller 'Umbraco.Forms.Web.Controllers.UmbracoFormsController'.
I have tried adding a surfacecontroller matching the page but I never end up in the POST action. Isn't the Umbraco framework supposed to handle this by the default UmbracoFormsController?
Umbraco Forms (before version 8.5) relies on jQuery and other javascript references to operate properly.
Are you seeing any javascript errors in your browser console (e.g. F12 in Chrome on a PC) or other indiciations that perhaps javascript or jQuery is not available to the form?
There is more explanation and details about the required setup in the docs, e.g.
The exact setup requirements may vary depending on which version of Umbraco CMS and Umbraco Forms you are using. You can switch the docs version using this toggle :
Submitting Umbraco form results in 404 to /umbraco/RenderMvc
I'm using an Umbraco Forms form on my view, added by
@Umbraco.RenderMacro("renderUmbracoForm", new { FormGuid = Umbraco.Field("testform"), FormTheme = "Default", ExcludeScripts = "0" })
.When submitting the form, I end up at a 404 page
Requested URL: /umbraco/RenderMvc
. Why is that? The form action points to the page itself.Inspecting the webexception:
A public action method 'MyPage' was not found on controller 'Umbraco.Forms.Web.Controllers.UmbracoFormsController'
.I have tried adding a surfacecontroller matching the page but I never end up in the POST action. Isn't the Umbraco framework supposed to handle this by the default UmbracoFormsController?
Umbraco Forms (before version 8.5) relies on jQuery and other javascript references to operate properly.
Are you seeing any javascript errors in your browser console (e.g. F12 in Chrome on a PC) or other indiciations that perhaps javascript or jQuery is not available to the form?
There is more explanation and details about the required setup in the docs, e.g.
https://our.umbraco.com/Documentation/Add-ons/UmbracoForms/Developer/index-v7
The exact setup requirements may vary depending on which version of Umbraco CMS and Umbraco Forms you are using. You can switch the docs version using this toggle :
Hope this helps,
Chris
Hey Chris,
The error is inserted to the DOM as an HTML comment on the error page.
I've added the required client side scripts and followed the guide.
is working on a reply...