Umbraco Forms posting back whenever AJAX is fired.
Hey there.
So we have a bunch of webForms usercontrols added to a page. There user controls all Ajax-ify each other and everything was working perfectly... until I installed Umbraco Forms.
Now, when I add a form to the page via a macro, a lot of the AJAX is either breaking, or the form is being submitted every..single..time I perform an action. For laughs, I removed all validation from the form I create and I received an email for every single button click that I performed.
Is Forms just simply not compatible with web forms / having a global form tag that surrounds the page.
It does seem to be the form tag that causes an issue. When I move the macro outside of the form tag, all is ok, but this unfortunately isn't a practical solution (the form tag needs to surround all the content and I can't have the forms appearing first thing inside the body ;) ).
Not sure how to get Forms working within a form tag. I believe contour used to work as it had both a macro partial and a user control, but no such joy with forms.
I would place my bets on Umbraco Forms not supporting asp.net webforms since webforms wraps the whole page in one form.
Forms works fine for us in MVC and we don't have the issue with any of our MVC forms, but they are actual forms as MVC doesn't have the form tag around the page.
Umbraco Forms posting back whenever AJAX is fired.
Hey there.
So we have a bunch of webForms usercontrols added to a page. There user controls all Ajax-ify each other and everything was working perfectly... until I installed Umbraco Forms.
Now, when I add a form to the page via a macro, a lot of the AJAX is either breaking, or the form is being submitted every..single..time I perform an action. For laughs, I removed all validation from the form I create and I received an email for every single button click that I performed.
Is Forms just simply not compatible with web forms / having a global form tag that surrounds the page.
Cheers
Andy
Andy,
You one master form tag that encompasses all the usercontrols that may be causing the issue? May be also need to use validation groups?
Regards
Ismail
It does seem to be the form tag that causes an issue. When I move the macro outside of the form tag, all is ok, but this unfortunately isn't a practical solution (the form tag needs to surround all the content and I can't have the forms appearing first thing inside the body ;) ).
Not sure how to get Forms working within a form tag. I believe contour used to work as it had both a macro partial and a user control, but no such joy with forms.
I would place my bets on Umbraco Forms not supporting asp.net webforms since webforms wraps the whole page in one form.
Forms works fine for us in MVC and we don't have the issue with any of our MVC forms, but they are actual forms as MVC doesn't have the form tag around the page.
Yeah, that unfortunately seems to be the case.
The only solution I've come up with at the moment, is to create a seperate template that has no
is working on a reply...