Moonsoft Software Solutions

Reset button do not reset output form

Started 14 Oct 2012 · 3 replies

  1. moon_740
    When I clic on "reset" button on my form, input fields are reset but not output form.
    How can I hide output form when user reset the form ?

    Edited by moon_740 - 14.10.2012 19:21
  2. Moonsoft support
    Hello,
    yes, reset button targets only input form, but you can force it to clean the output as well. Add these lines to the javascript tab:

    seed=$('cb_layout_wrapper').getParent().getProperty('id').substr(0,$('cb_layout_wrapper').getParent().getProperty('id').indexOf("_"));

    $$("input").addEvent("click",function(event){
    $(seed+"_cb_result").setStyle("display","none");
    });


    That should do the work.

    Regards
  3. moon_740
    It works. Thanks.
    This could be a good idea to include it in the next release.
  4. Moonsoft support
    Yes, it's already included for next release, thank you for your feedback.

    Regards

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket