Reset form button doesnt work

nezona 16 Oct, 2008
Hi there im very new to forms,

But have muddled my way through. I have created a form at http://developmentoy.com/index.php?option=com_chronocontact&chronoformname=Calculator

Which is a concrete calculator. It calculates fine, however the reset form button does not work, anybody have any ideas why? this is the code im using to reset the form :-

<input onclick="reset_onclick('')" value="Reset Form" name="xl_reset_bottom" type="button"></td>


Any help will be appreciated.


Kind regards
Neil
Max_admin 16 Oct, 2008
Hi nezona,

the whole form code is messed, I think you added the HTML and JS code with tags in the JS code box, try to check any of our video tutorials on how to setup a form, the HTML code need to go into the HTML box with no form tags, same for JS code!

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 17 Oct, 2008
Hi nezona,

You have a very complex piece of JavaScript there to do a simple calculation! I think that a big part of the problem is the form name. The script appears to be looking for a form with an id of 'formc'
co.p8B6=eeparseFloat(document.formc.p8B6.value); 
but the id of your form is 'ChronoContact_Calculator'

Bob
Max_admin 17 Oct, 2008
I just tested on Firefox 3 and all is fine ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
GreyHead 18 Oct, 2008
. . . and OK in IE7 too . . . Bob
This topic is locked and no more replies can be posted.