Validation Toolkit producing bad code
Dear Support,
It seems that my validation toolkit is not funtioning properly. I have deleted my config library and un/re-installed the component multiple times and am still receiving the same results. When I run the Client Validation Wizard on my checkout.php page the code that is produced is the following:
<form action="confirm.php" method="post" name="ecart_checkout_form" onsubmit="WAValidateCC(document.forms[1].cc_number,document.forms[1].cc_number.value,'- Invalid credit card number','','4:51:52:53:54:55:34:37:6011:',document.forms[1].cc_number,0,true);WAValidateRQ(document.forms[1].cc_number,'- CVV is required',document.forms[1].cc_number,0,true,'text');WAValidateRQ(document.forms[1].cc_number,'- Fisrt name is required',document.forms[1].cc_number,0,false,'text');WAValidateRQ(document.forms[1].cc_number,'- Last name is required',document.forms[1].cc_number,0,false,'text');WAValidateEM(document.forms[1].cc_number,document.forms[1].cc_number.value,'- Invalid email address',document.forms[1].cc_number,0,true);WAValidatePN(document.forms[1].cc_number,'- Invalid phone number',false,true,'',document.forms[1].cc_number,0,true);WAValidateRQ(document.forms[1].cc_number,'- Address is required',document.forms[1].cc_number,0,false,'text');WAValidateRQ(document.forms[1].cc_number,'- City is required',document.forms[1].cc_number,0,false,'text');WAValidateZC(document.forms[1].cc_number,'- Invalid zip code',true,true,true,true,'',document.forms[1].cc_number,0,true);WAValidateRQ(document.forms[1].cc_number,'- Shipping name is required',document.forms[1].cc_number,0,false,'text');WAValidateRQ(document.forms[1].cc_number,'- Shipping name is required',document.forms[1].cc_number,0,false,'text');WAValidatePN(document.forms[1].cc_number,'- Invalid shipping phone number',false,true,'',document.forms[1].cc_number,0,true);WAValidateRQ(document.forms[1].cc_number,'- Shipping address is required',document.forms[1].cc_number,0,false,'text');WAValidateRQ(document.forms[1].cc_number,'- Shipping address is required',document.forms[1].cc_number,0,false,'text');WAValidateZC(document.forms[1].cc_number,'- Invalid shipping zip code',true,true,true,true,'',document.forms[1].cc_number,0,true);WAAlertErrors('Correct invalid entries to continue','',true,false,false);return document.MM_returnValue">
As you can see cc_number is repeated in every validation as opposed to the proper object names so I have to manually change each to the correct name for the form to validate. This solves the problem until the City (select list) gets validated. The validation will not accept a selected value and continue. Please advise.
Your help here is greatly appreciated,
CJ