close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Add to Cart Button Form Validation

Thread began 12/10/2010 2:22 pm by eyoung296270 | Last modified 12/13/2010 2:50 pm by Jason Byrnes | 1377 views | 7 replies |

eyoung296270

Add to Cart Button Form Validation

I am trying to add client side form validation using entry required for 3 fields in the form where measurements are required. When checking the validation and I click the add to cart button with no entries in any field I get the error message that the three fields are required. However when I fill in just one field the add to cart button adds the item to the cart and the form validation doesn't work.
I have tried changing the page to where the form posts with no positive results. What am I doing wrong?

Sign in to reply to this post

Jason ByrnesWebAssist

impossible to tell what may be wrong without seeing the page.


please post a link where i could see the problem to be able to investigate the cause.

Sign in to reply to this post

eyoung296270

Thanks Jason,
Here is the link: factory-spa-covers-detail-shape1-step.php?ItemsID=1&ItemColor=6&shapeID=1&ItemCatID=6

Sign in to reply to this post

Jason ByrnesWebAssist

if you look at the validaiton code:
onsubmit="WAValidateRQ(document.forms[1].eCart1_1_MeasureA_Add,'- Measurement A is required',document.forms[1].eCart1_1_MeasureA_Add,0,false,'text');WAValidateRQ(document.forms[1].eCart1_1_MeasureA_Add,'- Measurement B is required',document.forms[1].eCart1_1_MeasureA_Add,0,false,'text');WAValidateRQ(document.forms[1].eCart1_1_MeasureA_Add,'- Measurement C is required',document.forms[1].eCart1_1_MeasureA_Add,0,false,'text');WAValidateRQ(document.forms[1].eCart1_1_MeasureA_Add,'- Skirt Length is required',document.forms[1].eCart1_1_MeasureA_Add,0,false,'text');WAAlertErrors('The following errors were found','Correct invalid entries to continue',true,false,false);return document.MM_returnValue"



all of the validations have been applied to the eCart1_1_MeasureA_Add form element, no valdation has been applied to the other form elements.

Sign in to reply to this post

eyoung296270

I see that. In using the client side validation wizard I am selecting each form element and applying a required and the error text but I still get the same results. I have uninstalled the validation toolkit and reinstalled it and I get the same results. I am using dreamweaver cs3 with vista.

Sign in to reply to this post

eyoung296270

Is there a problem with the validation toolkit and dreamweaver cs3? None of my forms are being validated properly. They all use the first field for all field validations.

Sign in to reply to this post

eyoung296270

I have uninstalled the validation toolkit and reinstalled it. I have a better looking validation behavior but still the same results. This page does have a shopping cart on the page as well. Here is the link and any help would be appreciated.
factory-spa-covers-detail-shape2-step.php?ItemsID=2&ItemColor=2&shapeID=2&ItemCatID=92

Sign in to reply to this post

Jason ByrnesWebAssist

you started a new thread for this issue here:
showthread.php?t=17671

see my reply there.

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