Rendering Contour form in Razor, no form action is set
Hi,
We're adding a form in razor using a macro with: @Html.RenderMvcAction(action, controller, formGuid, formtoken, (umbraco.MacroEngines.DynamicNode)Model, (System.Dynamic.DynamicObject)Parameter);
The form is displaying (unfotunately we had to manually include jquery ui and validate etc I thought these would just be included out of the box when you embedded a form)
The only issue now is that we can't submit the form because no form action is set. Ideally we'd love it to ajax post back and not leave the page.
Rendering Contour form in Razor, no form action is set
Hi,
We're adding a form in razor using a macro with: @Html.RenderMvcAction(action, controller, formGuid, formtoken, (umbraco.MacroEngines.DynamicNode)Model, (System.Dynamic.DynamicObject)Parameter);
The form is displaying (unfotunately we had to manually include jquery ui and validate etc I thought these would just be included out of the box when you embedded a form)
The only issue now is that we can't submit the form because no form action is set. Ideally we'd love it to ajax post back and not leave the page.
Tom, I also have this same issue.
Like you, I had to include scripts manually. Still, the form doesn't submit. Have you had any luck?
nope no luck.. I think it's a bug
Comment author was deleted
In Contour v3 we are using mvc bridge http://our.umbraco.org/projects/developer-tools/mvcbridge and the empty action attribute isn't a but but intended behaviour.
You should be able to submit fine, make sure you don't have nested forms and the surrounding form isn't being submitted
Comment author was deleted
and for details on ajax submission check this post http://justthisguy.co.uk/ajax-contour-forms-zurb-abide/
is working on a reply...