CalcBuilder Forum

Tabs - show tab if checkbox is selected

User moon_1142 2013-06-25 19:09:59

Hi
As the topic says I'm trying to get it to hide/show tabs depending on whether a field type yes/no or multiple-option is checked.

First off the tabs is working fine.
The reason I'm using tabs is that in the end, there will be many fields in my calculations. So it's simply to make it more userfriendly and dont show fields that the current user dont need.

The calculations is for house renovations and energysavings.
The idea of ​​it is to let the user choose what to calculate.
For example:
New windows: Yes/No
New roof: Yes/No
etc.

If "New roof" is checked a new tab is added or shown.
And If "New windows" is checked a new tab is added or shown.

And of course in the end we can add it all up.

Is it possible to do something like what im describing?

BR
Kim

Moonsoft support 2013-06-26 11:13:36

Hello,

Yes, it´s possible with javascript code. You should use 'Javascript events' in your calculator to write your javascript code. Fields ids are related to field variable names in backend. So, if you need to select field in javascript you could use variable name.
Remember that to use jQuery javascript framework you should write CB instead of $, which is reserved for Mootools.

If you want us to make code for you, please send us your requirements, url to gestion@moonsoft.es and we´ll send you a quote.

Regards,

User moon_1142 2013-07-03 12:50:08

Thanks for the response.
I'll keep you posted.

...
Support/development 40 hours

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

Buy now!
...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!