Using WPForms with WP Rocket

WP Rocket is compatible with the WPForms plugin. However, if you're still seeing issues between both plugins, the information in this article can be handy.

Using WPForms with WP Rocket's Delay JavaScript execution

One of the WPForm inline scripts, which uses the wpformsRecaptchaCallback keyword is automatically excluded from Delay JavaScript execution, because it is incompatible.

However, if enabling Delay JavaScript execution still causes issues with the forms, please try the following:

ReCaptcha validation fails / ReCaptcha console error

If the form fails because of a failed ReCaptcha validation, please check the  Google Recaptcha checkbox, the One-click exclusions section.

Error notice in pages with forms while logged-in as admin

If the form is not working while logged-in as an admin, both User Cache and Delay JavaScript execution are enabled, WPForms can trigger the following error message:

Heads up! WPForms has detected an issue with JavaScript on this page. JavaScript is required for this form to work properly, so this form may not work as expected. See our troubleshooting guide to learn more or contact support.

In this case, below's WPForms filter can be used:

add_filter( 'wpforms_frontend_missing_assets_error_js_disable', '__return_true');

You can add it using any method described in this article.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.