CalcBuilder Forum

Option not shown in drop-down list + comma instead of a dot

User haunschmidtom 2018-06-01 19:32:54

Hello,

I have to small problems with my calculator. You can find him here: http://www.thomashaunschmid.at/kk/index.php/kosten

If you open it you cannot see an option in the list automatically. It should be great if there is automatically the smallest option (in my case "3" is choosen).
When I choose manually the option in the list I cannot see my entry, the field is empty. By clicking on "calculate" everything works fine. So it looks like that this is only an error in displaying the options.

Here you can find two screenshot where you can see what I mean:
https://prnt.sc/jpm9vk
https://prnt.sc/jpm9zu

The second problem is about the round function in php. After calculating it might be that the result is not an integer. It could be that the result is 14,72 or something like this. Actually I get a dot for the decimal, but I need an comma. How can I change this?
(Here is also a screenshot for this case: https://prnt.sc/jpmc81)

Thanks for your help.

All the best,
Thomas

Moonsoft support 2018-06-04 08:44:16

Hello,
the configuration is working properly with the default value, but you have at your page/template any script that is replacing the combobox created by Calcbuilder into another element (div+li), that is not working properly. You can see the default combobox in action (working at your page without external scripts being applied) here:

http://www.thomashaunschmid.at/kk/index.php/kosten?tmpl=component

So we suggest to try another template for a while in order to confirm if its a template issue, so you can ask for support to your template provider.

Regarding result formatting, you can change the format of your results using number_format function, where you can choose the number of decimals, thousands and decimal separator...you can find detailed instructions here:


https://www.youtube.com/watch?v=FAKfolU01pE

(if you have already the results you can start about minute 3)


https://www.moonsoft.es/component/discussions/2-cbsupport/3924-re-max-decimals-in-inline-results?Itemid=107


Hope this helps, regards

User haunschmidtom 2018-06-05 14:52:38

Hello,

thanks for your perfect support. It works great now. Thank you so much.

All the best,
Thomas

...
List Manager

Build different lists for your site

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!