PDA

View Full Version : Validation Toolkit 2.3.5 validates same field


rsorrells14352
02-28-2010, 10:00 AM
Hello,

I just added validation to a form to several fields. However, Validation Toolkit 2.3.5 seems to have applied all of the validatin rules to the very first field called company_name.

For sure, I selected the correct fields. I did not even add validation to company_name.

Any recommendations?

Thanks,
Bob




<form action="<%=MM_editAction%>" method="POST" name="form1" onsubmit="WAValidateAN(document.forms[1].company_name,document.forms[1].company_name.value,'- Must enter last name',true,true,true,true,'',document.forms[1].company_name,0,true);WAValidateEM(document.forms[1].company_name,document.forms[1].company_name.value,'- Invalid email address',document.forms[1].company_name,0,true);WAValidateAN(document.forms[1].company_name,document.forms[1].company_name.value,'- Must enter password',true,true,true,true,'',document.forms[1].company_name,0,true);WAValidateAN(document.forms[1].company_name,document.forms[1].company_name.value,'- Must enter address 1',true,true,true,true,'',document.forms[1].company_name,0,true);WAValidateAN(document.forms[1].company_name,document.forms[1].company_name.value,'- Must enter city',true,true,true,true,'',document.forms[1].company_name,0,true);WAValidateZC(document.forms[1].company_name,'- Invalid zip code',true,true,true,true,'',document.forms[1].company_name,0,true);WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,false,false);return document.MM_returnValue">

Dani Chankhour
03-01-2010, 11:21 AM
In Dreamweaver you can see all the validation that you applied to this form by going to (Window -> Behaviors), then select the form tag in Design View. The Behaviors panel will show you the type of validation you have applied to the form, and when i did a quick test, i see that you have applied validation to the company_name field. But you can easily add and remove by clicking the +/- button.

let me know if you have any other questions.

rsorrells14352
03-07-2010, 06:36 AM
Hi Dani,

I appreciate your reply.

Actually, I didn apply validation to the company_name field, rather, Validation Toolkit ignored the other fields I had selected to validate, and applied everything to the first field, which happens to be company_name. Correcting it and saving it as you described does not seem to fix it.

There is a bug in Validation Toolkit. I suspect that I have a field name that it does not like, and it breaks your code. When I get time, i will go back and isolate the bug.

Bob

Dani Chankhour
03-07-2010, 09:22 PM
If you still have a copy of the form before applying Validation Toolkit, please send it as a zip so i can try to reproduce the issue you are having. and if it is a bug i will log it and try to get a fix for it.

Thanks.