PDA

View Full Version : Validation Toolkit producing bad code


cj381970
09-24-2010, 10:49 AM
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.fo rms[1].cc_number,'- Fisrt name is required',document.forms[1].cc_number,0,false,'text');WAValidateRQ(document.f orms[1].cc_number,'- Last name is required',document.forms[1].cc_number,0,false,'text');WAValidateEM(document.f orms[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.f orms[1].cc_number,'- City is required',document.forms[1].cc_number,0,false,'text');WAValidateZC(document.f orms[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.f orms[1].cc_number,'- Shipping name is required',document.forms[1].cc_number,0,false,'text');WAValidatePN(document.f orms[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.f orms[1].cc_number,'- Shipping address is required',document.forms[1].cc_number,0,false,'text');WAValidateZC(document.f orms[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

Jason Byrnes
09-24-2010, 11:24 AM
When you start the client validation wizard, make sure that the correct form is selected in the dropdown list, then go thorough and reapply each validation.

cj381970
09-24-2010, 12:13 PM
There are only two forms on the page, form[0] is the paypal express checkout form, form[1] is the correct form. I've reapplied each validation multiple times and have gotten the same result.

Jason Byrnes
09-24-2010, 12:20 PM
What version of validation toolkit?


can you send a copy of your page.

cj381970
09-24-2010, 12:38 PM
attached, thanks.

Jason Byrnes
09-24-2010, 12:49 PM
you didn't answer my question:
What version of validation toolkit?

cj381970
09-24-2010, 12:50 PM
version 2.3.5

Jason Byrnes
09-24-2010, 01:44 PM
I am not able to reproduce this issue.

What is your OS?

What version of Dreamweaver are you using?

cj381970
09-24-2010, 02:04 PM
Mac OSX 10.6.4
CS4

cj381970
09-27-2010, 07:16 AM
Any suggestions here? This extension is not working correctly.

Jason Byrnes
09-28-2010, 03:10 PM
I have created a support ticket so we can look into this issue further.

To view and edit your support ticket, please log into your support history:
http://www.webassist.com/mywebassist/supporthistory.php