terminal42 / contao-ajaxform

Submit a form through ajax and display error or confirmation message.
15 stars 7 forks source link

with 2 ajaxforms on the same page, the 2nd one displays wrong message after sending #4

Closed nkirstein closed 8 years ago

nkirstein commented 9 years ago

I get this error in Contao 3.2.9, 3.4.5 and 3.5.0, even on a completely fresh 3.5.0 installation with no extensions except ajaxform and its dependencies.

I have two ajaxforms on the same page, both are inserted as content elements with "Thank you" messages configured in the CE configuration. When I send the first form, everything works as expected and the message is displayed. But when I send the second form, somehow the entire first form is repeated in the place where the message of the second form should appear. Here is an example of what the page looks like before (left) and after (right) sending the second form:

ajaxform

Some further information that might be of interest: