Title: Form Issue
Last modified: December 3, 2019

---

# Form Issue

 *  Resolved [hypevent](https://wordpress.org/support/users/hypevent/)
 * (@hypevent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/)
 * Since I started using Autoptimize my gravity form has had an issue. Whenever 
   I complete a form, I get redirected back to the start the form again. I already
   checked with Gravity Forms support and confirmed that it was not a form issue.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fform-issue-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12203054)
 * Can you try adding `plugins/event-espresso-decaf/` to the comma-separated JS 
   optimization exclusions?
 *  Thread Starter [hypevent](https://wordpress.org/support/users/hypevent/)
 * (@hypevent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12205167)
 * Since the issue I am having is with gravity forms, may I ask why adding event
   expresso vs gravity forms to the comma-separated JS optimization exclusions?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12205568)
 * well, browsers stop executing code in one file if they encounter (serious) issues.
   as AO aggregates as much JS as possible, in case of an error the JS after the
   offending code does not execute. In your case, based on a JS error which I saw
   in the browser console, I deducted expresso was the JS causing an error causing
   the rest not to be executed.
 * hope this clarifies 🙂
    frank
 *  Thread Starter [hypevent](https://wordpress.org/support/users/hypevent/)
 * (@hypevent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12205753)
 * Hi Frank,
    Thank for the clarification. I added `plugins/event-espresso-decaf/`
   to the comma-separated JS optimization exclusions but I am still experiencing
   the issue.
 *  Thread Starter [hypevent](https://wordpress.org/support/users/hypevent/)
 * (@hypevent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12205780)
 * Hi Frank,
    Thank for the clarification. I added plugins/event-espresso-decaf/
   to the comma-separated JS optimization exclusions but I am still experiencing
   the issue.
 * **What I just noticed is that when I complete the form, I am redirected to the
   first page/questions, all of my answers are saved/
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12206195)
 * hey hypevent ; I see the page is password protected now, so I can’t inspect it
   anymore?
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12206233)
 * hmm, the good thing is there indeed are no JS errors any more, the bad thing 
   is that that makes it harder to troubleshoot. can you try adding `plugins/gravityforms`
   to the comma-separated JS optimization exclusion list?
 *  Thread Starter [hypevent](https://wordpress.org/support/users/hypevent/)
 * (@hypevent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12206260)
 * I added it but I believe the issue is still there.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12207137)
 * in that case you can either:
    * systematically try to exclude JS until you find
   the right one (trial & error)”a * try if it works with “aggregate JS” off * or
   you can simply disable optimization of that specific page [by using this trick](https://blog.futtta.be/2018/06/19/quick-trick-to-disable-autoptimize-on-a-page/)
 *  Thread Starter [hypevent](https://wordpress.org/support/users/hypevent/)
 * (@hypevent)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12210362)
 * Turns out it is a W3 Total Cache issue/conflict. I am still working on it but
   I appreciate your help.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12210901)
 * ah, interesting. feel free to follow up once you have the root cause!
 *  Thread Starter [hypevent](https://wordpress.org/support/users/hypevent/)
 * (@hypevent)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12240872)
 * The conflict was the recent update to W3 Total cache.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Form Issue’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [hypevent](https://wordpress.org/support/users/hypevent/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/form-issue-3/#post-12240872)
 * Status: resolved