Do you have an email action, and do you have debug turned on?
Thank you for your answer healyhatman.
E-Mail Action: yes, I have one, and it sends emails
I also have a message and an event loader to show the form again. But I've tried with and without event loader.
Debug: what exaclty do you mean? The debugger of Chronoforms or setting the whole system to display errorws, warnings and notices etc.?
I had a look at the browser's console and it shows no errors or warnings, and I used the debugger of Chronoforms, but there I can find nothing wrong or actually I am not sure what to look for.
The debugger will show the body of the email, which is probably why you're seeing all the fields as they're automatically attached to the email
I am not sure if we are talking about the same thing here. I am fine seeing all the fields, but I am displaying my form lets say in a DIV within a HTML template, and when I sumit the form via AJAX, I would expect it to only send in the background, receive a message to display and display the message somewhere, but not to reload the whole layout of the page in that DIV, because what I have then is an HTML layout with a DIV containing the same HTML Layout (including body tag etc.) again. This is what happens though - after submission, the whole template layout appears in the DIV around my form and message. Do you know what I mean?
This was different in CF V5, and to me it seems like a bug, but I could just be missing a setting and couldn't find anything in the documentation regarding AJAX.
I get what you mean. On the first tab, with all the form settings, set form type to "custom" since you're using a Form Area.
Now that you have changed it to 6.1 there should be a custom option. Either that or get rid of the Form Area on your pages. It definitely shouldn't be loading the whole page in AJAX
Update - I just tested it with protostar and it really seems to be a difference depending on the template. I will for now have to try and find a hack to solve it.
But I still need to come back to this, as I think this could be solved in a way not depending on the template. There are ways to only give a JSON / Text response that gets processed and placed via JavaScript, in which case it would work with any template, and would give the option to place the message above the form instead of replacing the form, too. I also tested this on many other AJAX requests even with the yootheme framework. I suggest this to be improved in a future version.
Thank you for the tipps with the form type though, that helped anyway.