Forum Replies Created
-
AuthorPosts
-
August 11, 2018 at 5:50 pm in reply to: Contact form recaptcha JS error and not all fields submitted #23748
Try going to Themes > Customise Theme > Theme Settings > General and then untick ‘Minify HTML code’.
Seems to have fixed both issues for me.Thanks Ryan, I found that out myself also.
Very slack of the developers/team. They created a custom login/register page, a half finished My Account dashboard and then neglected all the other pages. Not impressed.
August 9, 2018 at 6:27 pm in reply to: Contact form recaptcha JS error and not all fields submitted #23715This is caused by the theme’s minify HTML setting.
The reCaptcha relies on a function written in the HTMLThe theme’s minify setting causes this entire function (below) to be commented out as all whitespace is removed by minify.
This issue will, by default, effect all sites using this theme as the default setting is to minify the HTML.//<![CDATA[
var recaptchaCallback = function() {
grecaptcha.render(‘g-recaptcha’, {
sitekey: “####”,
size: (window.innerWidth > 320) ? ‘normal’ : ‘compact’,
callback: ‘onCaptchaSuccess’,
});
};var onCaptchaSuccess = function() {
var event;try {
event = new Event(‘captchaSuccess’, {bubbles: true, cancelable: true});
} catch (e) {
event = document.createEvent(‘Event’);
event.initEvent(‘captchaSuccess’, true, true);
}window.dispatchEvent(event);
}//]]>
-
AuthorPosts