Whey you reset the calculator form the Interest field didn't get initialized and is empty. Normaly the field should be inititalized with the default interest reate corresponding to the selected currency and type.
It turns out that on reset the form is finally initialized with the default value for the field no matter if the value is changed (by script for example). Even if the default value is not set (empty string value), this will be the field value if the form is reseted. Observations made on Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/2006101023 Firefox/2.0, but I think this is valid for all Gecko releases to date and all Gecko based browsers.
Created attachment 40 [details] A possible solution for the problem This example shows that JavaScript code can change the defaultValue DOM element of an HTML form input, so it is initialized with this value when the form is reseted.
The idea from the attachment 40 [details] was used, but I had to overcome some other issues with the form default values. When doReset() was invoked it read the old values, before the form is initialized, so I had to find the default form values and use them to reset the form properly.
bug/show.html.tmpl processed on May 18, 2024 at 22:01:36. (provided by the Example extension).