CalcBuilder Forum

Question on buttons

User dhoeke 2025-11-18 16:30:49

Hi there,

The toolbar holds the calculate and reset button. I have calculators where you can calculate a single calculation OR generate a table.

Now to calculate you simply go to the next field with tab and then it calculates the result. If you like a table you click table.

The thing is is that it is not 100% intuitive. I would almost like 3 buttons, calculate, table and reset.. Also if you hit tab for the next field then the table button is highlighted which I do not really like.

Can you think of any option on how to deal with this?

Thanks in advance,
Dennis

Moonsoft support 2025-11-19 15:17:04

Hi,
yes, those are the 2 different methods available to get results, the inline results, that launch whenever a field is changed (is not the tab itself, it's the change event of each field, it also launches if you click outside the field, for ex). And the 'default' calculate button that also generates the output section.
We understand you're looking for an extra button able to launch that first change event. There's not a built-in solution but it's possible to generate such function if you have some js knowledge (please let us know if you need us to build it for you). You need to add a button that performs this action 'onlick'

CB("").change(); //simulating a change on the first form field

You can try this line from the browser console to confirm it behaves as expected. Then add a button to your calculator able to launch that line and it should do the work.

Hope this helps, regards
Silvia Martín
Moonsoft Team

User dhoeke 2025-11-20 18:01:48

Perfect I will see what I can do. Thanks for the information. Best regards.

...
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!