I'm trying to redirect a partial view form post to a specific method in a controller. But it sees like Umbraco ignores my route and changes it to another route.
The method Modal in my controller get hit and return my form as a partial view and displays it to the user.
When I inspect the html rendered for the form I expected the route for the form to be something like "CustomerListApi/SaveCustomer" as I thought that this was the route that I set in Html.BeginUmbracoForm.
But the html is: action="/umbraco/Surface/CustomerListApi/Modal"
I click Save and ends up in Modal in CustomerListApi instead of SaveCustomer.
+1 to this, the most I have heard about this problem is that there is something up with the routes when you use AJAX/JQ to get a partial view that causes all of the umbracoform routes to go wrong.
BeginUmbracoForm changes route value
Hi
I'm trying to redirect a partial view form post to a specific method in a controller. But it sees like Umbraco ignores my route and changes it to another route.
The button on the main page triggering the modal:
The script for this page:
My controller:
My View:
When I inspect the html rendered for the form I expected the route for the form to be something like "CustomerListApi/SaveCustomer" as I thought that this was the route that I set in Html.BeginUmbracoForm. But the html is: action="/umbraco/Surface/CustomerListApi/Modal"
I click Save and ends up in Modal in CustomerListApi instead of SaveCustomer.
Any suggestions of where I'm wrong?
Thanks
+1 to this, the most I have heard about this problem is that there is something up with the routes when you use AJAX/JQ to get a partial view that causes all of the umbracoform routes to go wrong.
I have yet to figure out an answer.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.