CalcBuilder Forum

back button

User moon_347 2013-08-06 05:01:46

Hi,
Is it possble to insert a back button into a frontend form so clients can go back to the last step if they want?
I also want to print directly after I hit the calculate button is this possible or is it just missing from the output?

Regards,

Brian

Moonsoft support 2013-08-06 10:38:05

Hello,
that will depend on how have you built your steps. If you have built some steps with javascript, then you can use same method to create a button and send the user back to a previous step.

About the automatic print, you can also profit from javascript tab to launch the export just when the calculator shows the output. You can add a line to the js tab 'executed after calculate execution', to 'click' the button without user interaction. The code would be like this:


var idform=CB(".cb_form").attr("id");
var seed=idform.replace("cb_form","");
CB('#'+seed+'cb_tools').click();


or, artenatively, you can use this line (not valid for IE6) :

CB("").click();


Please note this will launch export using script, so it may also launch the popup blocker if configured.


Hope this helps, regards

User moon_347 2013-08-06 17:29:47

Hi,
I inserted the following java script into the calc builder, it gave me a "back" button but at the end of the calculator (step 8) and it also stopped the calculator from moving from one screen to the next, all showing on the same page. I have 8 steps and would like steps 2-8 to have the back button inserted. Can you help me please.

Code: CB("input



Moonsoft support 2013-08-06 17:45:45

Hello,

Sorry but we don´t know how your steps are built, as it is custom code you have introduced at your calculator. If it´s a calculator we built for you as a 'Custom Calculator Service', then we can guide you to introduce the back button in our code. Place a ticket in helpdesk with the calculator name, to share code with you.

Regards,

...
Support/development 10 hours

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

Buy now!
...
List Manager

Build different lists for your site

Buy now!