Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom 713 posts 954 karma points
    Oct 13, 2014 @ 05:36
    Tom
    0

    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.

     

  • Matthew Hardesty 22 posts 73 karma points
    Oct 29, 2014 @ 09:47
    Matthew Hardesty
    0

    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?

  • Tom 713 posts 954 karma points
    Oct 29, 2014 @ 23:27
    Tom
    0

    nope no luck.. I think it's a bug

  • Comment author was deleted

    Nov 03, 2014 @ 09:53

    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

    Nov 03, 2014 @ 10:06

    and for details on ajax submission check this post http://justthisguy.co.uk/ajax-contour-forms-zurb-abide/

Please Sign in or register to post replies

Write your reply to:

Draft