Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

Enforce calculation / push value to inline result 27.04.2015 09:09

Hi,

I've got two questions:

1. How can I push a value via JavaScript from "outside" to an inline result? Using cb_setValue('myvar','NEW_VALUE'); doesn't work with inline results. Do i have to fill a helper field?

2. Is there a way to call calculation via JavaScript?

Re: Enforce calculation / push value to inline result 28.04.2015 08:43

Hi,
the setvalue function is only valid for input fields. If you have the need to set values from js to an inline field, you need to check first which is that field ID at the calculator field section, with that number (for ex, ID=34) you can use:

CB("#fld_34").html("New value");

You can also call calculation, just sending the 'click' event to the calculate button, it would be:

CB("input[name=calculate]").click();


Hope this helps, regards
Moonsoft Team
www.moonsoft.es

Re: Enforce calculation / push value to inline result 30.04.2015 21:55

Works perfectly! Thanks a lot!
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback