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

Preventing certain cities/countries from ordering

Thread began 4/27/2010 1:10 pm by toby379423 | Last modified 5/21/2010 1:25 am by toby379423 | 2356 views | 17 replies



So I went and chose the restricted content to the city field on the page, but now I get the error message even when I don't use the restricted cities in question!

Here's the code:
<form action="confirm.php" method="post" name="ecart_checkout_form" onsubmit="WAValidateRT(document.forms[1].city,document.forms[1].city.value,'','%20Jacksonville%20|, %20Tallahassee%20|, %20Indianapolis%20|, %20Cincinnati%20|, %20Memphis%20|, %20Jacksonville%20|, %20Tallahassee%20|, %20Indianapolis%20|, %20Cincinnati%20|, %20Memphis%20|',document.forms[1].city,1,true);WAAlertErrors('The following errors were found','We do not ship to this region',true,false,false);return document.MM_returnValue" >

Here's what I did:

1) Insert > WebAssist> Validation Toolkit> Client Validation

2) In WA Client Validations Wizard> Form: ecart_checkout_form (there were 2 options, "forms[0]" and ecart_checkout_form, I chose the latter)

3) Set error message footer "We do not ship to this region"

4) Add validations> Form Element:, Validation type: Restrict Content

5) I add the restricted cities

I've since removed the code from the live site, but it seems I'm close to doing what I want to do, but just need it to restrict only the cities in question.

Any ideas where I'm going wrong?

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





Ease of use


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