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:
Some further information that might be of interest:
The forms are on the same page and in the same article but the <form> tags and the containing <div> elements all have separate IDs.
It makes no difference whether jQuery or MooTools is activated in the page layout.
When neither jQuery nor MooTools is activated, the second message is displayed correctly. The same is true when removing the <script> tags from the ajaxform.html5 template. Though of course in these cases the form is no longer sent via AJAX.
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:
Some further information that might be of interest:
<form>
tags and the containing<div>
elements all have separate IDs.<script>
tags from the ajaxform.html5 template. Though of course in these cases the form is no longer sent via AJAX.