Moonsoft Software Solutions

back button

Started 6 Aug 2013 · 3 replies

  1. moon_347
    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
  2. Moonsoft support
    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
  3. moon_347
    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



  4. Moonsoft support
    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,

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket