I have a page with some simple razor forms and a submit-button. They work as Long as there is no contour-form on the page.
But as soon as I insert an contour-form (razor) the submit of the other forms stop working.
When I look at the traffic by fiddler I can see, that as soon as I insert the contour-form the other submit Buttons on my forms stop sending their value when they are pressed .
Any idea what's wrong or how to aviod the problem? Am I missing something?
Countour form stops other razor forms working
Hello,
I have a page with some simple razor forms and a submit-button. They work as Long as there is no contour-form on the page.
But as soon as I insert an contour-form (razor) the submit of the other forms stop working.
When I look at the traffic by fiddler I can see, that as soon as I insert the contour-form the other submit Buttons on my forms stop sending their value when they are pressed .
Any idea what's wrong or how to aviod the problem? Am I missing something?
Thanx, Arnim.
Hi Arnim,
This may be due to Contour's frontend JavaScript hijacking your submit button...
Have a look in ~/umbraco/plugins/umbracoContour/scripts/Frontend/contourForm.js and find a line that says:
Try changing that to:
This scopes the handler to only grab the Contour form's submit button and not try to validate your other forms with Contour's validators...
Of course, there may be other things interfering, but this is one I've encountered myself :-)
/Chriztian
Chriztian you're the man!
I only looked at the HTML and just couldn't make out what's going wrong. Changing the selector did the trick for me.
I hope they are updating the JS on the next version of Contour with this Change.
Thanx again for your super fast answer!
You're welcome Arnim,
I've created an issue for it, so let's keep our fingers crossed, shall we? :-)
issues.umbraco.org/issue/CON-475
/Chriztian
This is also a fix for user controls imported from visual studio.
Many thanks for this!!
is working on a reply...