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.
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.'
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
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)
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()
is working on a reply...