Copied to clipboard

Flag this post as spam?

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


  • Nick 101 posts 123 karma points
    Sep 04, 2013 @ 13:43
    Nick
    0

    Contour form never submits (SubmitHandled always false)

    Hi everyone,

    Using Umbraco 4.11.10 and latest nightly build version of Contour 3.0.15.

    This started happening a couple of days ago, that all the contour forms in the system stopped submitting.
    The "Model.SubmitHandler" is always false after a submit and nothing happens, the form just re-renders.

    We have never previously had any similar problem nor can we find online documentation to help us debug this sort of issue. We tried reverting to older versions both of contour but also our code (back to when it worked) and nothing made the problem go away.

    At this point we need help from anyone who either knows what could cause this or has experience with something similar.

    Any help is very appreciated. 
    Thank you

  • Nick 101 posts 123 karma points
    Sep 04, 2013 @ 17:22
    Nick
    1

    For anyone who cares, the problem was related to the AntiForgeryToken 

    In Contour forms the following lone should look like

    @Html.AntiForgeryToken("UmbracoContourForm")

    And not @Html.AntiForgeryToken(), (which is correct for 6.0)

     

  • Nick 101 posts 123 karma points
    Nov 07, 2014 @ 15:37
    Nick
    0

    I have this error where my "SubminHandled" is always false.

    I tried your suggestion  but I get: error CS0619:

    'System.Web.Mvc.HtmlHelper.AntiForgeryToken(string)' is obsolete: 'This method is deprecated. Use the AntiForgeryToken() method instead. To specify custom data to be embedded within the token, use the static AntiForgeryConfig.AdditionalDataProvider property.'

     

    So the correct is indeed @Html.AntiForgeryToken()

Please Sign in or register to post replies

Write your reply to:

Draft