CalcBuilder Forum

Radio Button + Cookie

Usuario moon_1859 2015-06-12 15:10:36

Hi,

I got an issue with radio buttons and saving inputs in cookies: When reloading the site, all the radio buttons get the attribute "checked" - no matter which option has been selected. Can you help me out?

Best regards

Alex

Moonsoft support 2015-06-12 17:01:55

Hi,

We have checked and confirmed it is not working for some cases. We'll fix for the next release. In the meantime, if you want to correct at your site, you only need to edit JOOMLA/mod_calcbuilder/assets/js/calcbuilder.js at line 343 replacing:

} else {
CB(field).val(inelem.val);
}

with:

} else if (!CB(field).is('input')) {
CB(field).val(inelem.val);
}

Regards,

Usuario moon_1859 2015-06-16 21:34:49

Thank you!! Works perfect!