CalcBuilder Forum

Get value of inline result

User moon_1859 2015-05-12 15:58:53

I got several calculations in "code" section in PHP. The results are shown as inline results in CB - everything works fine.

Later I need these results in JS. It seems like cb_getValue('...') doesn't work with inline results. Is this correct? How can I access these inline results?

Regards

Alex

Moonsoft support 2015-05-12 18:57:55

Hi,

in case you need to recover the contents once the output section is shown:

https://www.moonsoft.es/en/help/2-cbsupport/2741-check-results


in case you need to read it directly from the input form:

//Inline field with var name myfield1
CB("div").html();

Hope this helps, regards

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!