close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Validation Toolkit 2.3.5 validates same field

Thread began 2/28/2010 1:00 pm by rsorrells14352 | Last modified 3/08/2010 12:22 am by Dani Chankhour | 848 views | 3 replies |

rsorrells14352

Validation Toolkit 2.3.5 validates same field

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">

Sign in to reply to this post

Dani Chankhour

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.

Sign in to reply to this post

rsorrells14352

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

Sign in to reply to this post

Dani Chankhour

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.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...