Forums

Problem with JavaScript Not working

GreyHead 22 Jan, 2009
Hi Deon,

There are a couple of related problems here, you've left the old form tags in your code.
<form name="ChronoContact_Credit-Application" id="ChronoContact_Credit-Application" method="post" action="http://www.wheels2deal.co.za/index.php?option=com_chronocontact&task=send&chronoformname=Credit-Application" >
</head>
<body>
<form name="order">
as you can see here, ChronoForms adds its own <form . . .> and </form>tags and having the two sets will stop your form working correctly.

The second problem is that ChronoForms changes the form name - here to name="ChronoContact_Credit-Application" but your JavaScript depends on the old form name of 'order'.

You could try cleaning up your form html to remove the <head> <body> and <form> tags at top and bottom and then wrapping the whole of your form html in <div name='order'> . . .form html here . . .</div>

I don't know if this will work but I think it should. If not, your JavaScript will need some changes.

Bob
This topic is locked and no more replies can be posted.