Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

Reset button do not reset output form 14.10.2012 19:21

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

Re: Reset button do not reset output form 15.10.2012 09:20

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[type=reset]")[0].addEvent("click",function(event){
$(seed+"_cb_result").setStyle("display","none");
});


That should do the work.

Regards
Moonsoft Team
www.moonsoft.es

Re: Reset button do not reset output form 15.10.2012 19:44

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

Re: Reset button do not reset output form 15.10.2012 21:31

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

Regards
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Our clients' feedback