Hello @framsteget,
For some reason, the values are being treated as texts instead numbers and are being cocatenated.
Please, follow the steps below to force the browser to treat them as numbers (I will include the modifications in the official distribution of the plugin):
1. Open the “/wp-content/plugins/calculated-fields-form/js/fields-public/06_fbuilder.fcheck.js” file with the text editor of your choice.
2. Go to the piece of code:
if(!$.isNumeric(t)) t = t.replace(/^"/,'').replace(/"$/,'');
and modify it as follows:
if(!$.isNumeric(t)) t = t.replace(/^"/,'').replace(/"$/,'');
else t = t*1;
3. Finally, delete the file: “/wp-content/plugins/calculated-fields-form/js/cache/all.js” to allow the changes take effect, and that’s all.
Best regards.
Hi,
Now it’s working.
Calculations are done fast on Chrome. But all other browsers are very slow when there are much code to process.
Thanks
Hello,
I’m testing your form in different browsers and the performance is similar in all of thems. Remember that if you have deleted the cached file (all.js) the plugin will generate it again the first time the form is loaded, and the process is more time consuming, but one time the cached file is created the form’s performance is increased dramatically.
Best regards.