I'm having trouble with the AJAX options on Gravity Forms. When I have AJAX enabled for submissions (nothing fancy on the form), the form submits, browser tab loads, but the AJAX icon keeps spinning and the thank-you message never shows.
I traced this to W3 Total Cache's Minify settings. Oddly, I can leave Javascript and CSS as minifying, but simply disabling only "HTML & XML" minification makes the AJAX work.
I can disable or enable:
Inline CSS minification
Inline JS minification
Don't minify feeds
Line break removal
… but none of these affect it. Only the option just above these, "Enable" for the HTML minify settings, will break the AJAX.
Ignored comment stems is set to:
google_ad_
RSPEAK_
I've even compared the rendered source between HTML-minified and non-minifed between cache refreshes and there's no difference beside only the basic minifications like:
</script>
<div …
to:
</script><div …
I've read through the other posts here and can't find anything that will help. I have database cache configured correctly. It's only this HTML minification that breaks the AJAX.
Thank you in advance for your help.