Hi @ra71a ,
Thanks for reaching out, and sorry for the trouble here.
Based on the error you shared, it looks like WP-Optimize’s JavaScript optimization is affecting the WPForms validation script. In particular, the JavaScript merging/reordering can cause the wpforms_settings configuration to load in the wrong order, which prevents the form from validating correctly.
Could you please go to WP-Optimize > Minify > JavaScript and switch off Delay JavaScript and Defer JavaScript, including Defer jQuery if that option is enabled? Then please purge your cache and test the form again.
If the issue is resolved, you can leave the other JavaScript optimization options enabled and we can narrow down which setting is causing the conflict.
Regarding the reCAPTCHA sizing, the reCAPTCHA widget is rendered inside a frame controlled by Google, so it does not automatically resize when the page is zoomed. This is a limitation of the reCAPTCHA widget rather than something WPForms can control.
If disabling JavaScript merging does not resolve the validation issue, please share the page URL where the form is embedded and we’ll be happy to take another look.
Hi @ra71a ,
We haven’t heard back from you in a few days, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.
Thanks!
Thread Starter
ra71a
(@ra71a)
Hi Amjad
This was off already. I've spent a over a week messing around with the settings to no success.
With the reCAPTCHA. My work around it was this Snippet. My page url is - TDSM
/* Fix WPForms recaptcha + submit button overflow on narrow/zoomed viewports */
.wpforms-container-full .wpforms-form .wpforms-recaptcha-container {
max-width: 100%;
overflow: hidden;
}
.wpforms-container-full .wpforms-form .wpforms-recaptcha-container > div {
max-width: 100%;
transform-origin: left top;
}
/* Google's reCAPTCHA iframe wrapper itself */
.wpforms-recaptcha-container iframe {
max-width: 100%;
}
.wpforms-container-full .wpforms-form .wpforms-submit-container {
max-width: 100%;
}
.wpforms-container-full .wpforms-form .wpforms-submit {
max-width: 100%;
white-space: normal;
}
.wpforms-recaptcha-container > div {
transform: scale(0.75);
transform-origin: left top;
}