CalcBuilder Forum

Radio Button + Cookie

User 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,

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

Thank you!! Works perfect!

...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!