CalcBuilder Forum

Reset button do not reset output form

User moon_740 2012-10-14 19:21:11

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

Moonsoft support 2012-10-15 09:20:12

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

User moon_740 2012-10-15 19:44:16

It works. Thanks.
This could be a good idea to include it in the next release.

Moonsoft support 2012-10-15 21:31:01

Yes, it's already included for next release, thank you for your feedback.

Regards

...
Support/development 10 hours

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

Buy now!
...
Support/development

Perfect for small code changes or to correct any bug at your site

Buy now!