Why our extensions?
- High Quality, Tested and Approved
- Unlimited Domain License
- Dedicated Support Team
- Free Updates
- Easy to Install and Use

Form Validator

Questions

I'm getting a Dreamweaver message when using the validator in template based pages. How do I insert the validator inside a template based page?

Could you give some samples of valid regular expressions?

I'm having a lot of trouble using the regular expressions functionality with expressions I've found on other sites.

How can I validate checkboxes and radiobuttons ?

How can I validate a List/Menu field?

Why is only the "required: rule validated in the form and not the rest of present rules?

When I double click the MXP file I'm getting this error: "Extension requires more recent version of Macromedia Extension Manager". How can I solve this?

I have problems while downloading the file. How can I download it?

I don't have a credit card. Are there alternative payment options?

Do you offer a multi-domain license?

I'm getting this error message "Is not possible to create data structure.". What's happening?

Can I pay using my credit card ?

Can I use these extensions with MACs ?

I have downloaded the new program, but cannot seem to access it from the command panel.

I'm getting this message "Please define your site first.". What I should do?

This extension works with Dreamweaver CS5?

When I preview my web page after I get this message in my Internet Explorer,"To help protect your security, Internet Explorer has restricted...". What is the problem?

Note about sales taxes.

I'm getting this error: "TypeError: THE_DOM has no properties" . There is a workaround?

I'm getting the error "Can't update menus. Extension will not be installed". What is the solution?

Answers

I'm getting a Dreamweaver message when using the validator in template based pages. How do I insert the validator inside a template based page?

This validator requires inserting some scripts on the head section of the page.

All you need is to have at least one editable region into the head section. Most Dreamweaver versions inserts an editable region into the template automatically.


Could you give some samples of valid regular expressions?

Here are a group of common samples that con help you with your custom validation rules:

Date (mm/dd/yyyy or mm-dd-yyyy or mm.dd.yyyy):
/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/

US zip code (99999 or 99999-9999):
/(^\d{5}$)|(^\d{5}-\d{4}$)/

Canadian postal code (Z5Z-5Z5 orZ5Z5Z5):
/^\D{1}\d{1}\D{1}\-?\d{1}\D{1}\d{1}$/

UK zip code:
/^([a-zA-Z]){1}([0-9][0-9]|[0-9]|[a-zA-Z][0-9][a-zA-Z]|[a-zA-Z][0-9][0-9]|[a-zA-Z][0-9]){1}([ ])([0-9][a-zA-z][a-zA-z]){1}$/

Time (HH:MM or HH:MM:SS or HH:MM:SS.mmm):
/^([1-9]|1[0-2]):[0-5]\d(:[0-5]\d(\.\d{1,3})?)?$/

IP Address(no check for alid values (0-255)) (999.999.999.999):
/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/

Dollar Amount (100, 100.00, $100 or $100.00):
/^((\$\d*)|(\$\d*\.\d{2})|(\d*)|(\d*\.\d{2}))$/

Social Security Number (999-99-9999 or999999999):
/^\d{3}\-?\d{2}\-?\d{4}$/

Canadian Social Insurance Number (999999999):
/^\d{9}$/

Email:
/(^[a-z]([a-z_\.]*)@([a-z_\.]*)([.][a-z]{3})$)|(^[a-z]([a-z_\.]*)@([a-z_\.]*)(\.[a-z]{3})(\.[a-z]{2})*$)/i

US phone pattern ( (999) 999-9999 or (999)999-9999):
/^\([1-9]\d{2}\)\s?\d{3}\-\d{4}$/

String contains only valid numbers:
/(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/

Limit file extensions (images in this sample):
/\.jpg$|\.gif$|\.png$/i



I'm having a lot of trouble using the regular expressions functionality with expressions I've found on other sites.

Note that the regular expresions should be placed between //. Example (US ZIP CODE):

/(^\d{5}$)|(^\d{5}-\d{4}$)/


How can I validate checkboxes and radiobuttons ?

For "checkbox" and "radio" fields use the "is checked" rule.


How can I validate a List/Menu field?

You can use the "Value Required" rule for List/Menu.  Be sure that the value is set to empty, example:
 
<select ...>
 <option value=" ">Please select an option below</option>
 ....
</select>


Why is only the "required: rule validated in the form and not the rest of present rules?

In some cases it is necessary to insert optional fields on a form, but if a value is entered, it still must comply with a particular format.

How to enable this feature in Form Validator:

If a form field is mandatory and besides its value must comply with a particular format, then this field must be associated with two rules: "required" rule and a rule that validates the format of the entered value.

If the entered field is not mandatory but its values must comply with a particular format, then that field must be associated only with the rule that restricts the entered value.

For example, if a Zip Code is not required, the associated rule would be:

formValidatorInstance.addRule ( 'zipcode_field', 'Please enter your Zip Code', 'zipcode');

But if the Zip Code field is required, then its rules would be:

formValidatorInstance.addRule ( 'zipcode_field', 'Please the Zip Code is required', 'required');
formValidatorInstance.addRule ( 'zipcode_field', 'Please enter your Zip Code', 'zipcode');

Note that these rules are generated visually within Dreamweaver, you do not need to write any code yourself.



When I double click the MXP file I'm getting this error: "Extension requires more recent version of Macromedia Extension Manager". How can I solve this?

Download the most recent version of the Adobe/Macromedia Extension Manager or the version related to your Dreamweaver version:

http://www.adobe.com/exchange/em_download/

After installed open the MXP file from the Extension Manager menu to be sure that you are installing the extension using the correct Extension Manager.



I have problems while downloading the file. How can I download it?

If you purchased the product using Google Checkout, the instructions for accessing your purchase will appear in a yellow box at the top of your Order Receipt page (into your Google Checkout account):



After accessing that link you will get a copy of the product and a copy of the download link will be sent to your email address. If you have not received the email, please check your spam/bulk mail folder.

If you lost both download links, please contact our support service and we will send you a new download link. Please include the email used for payment in your message;


I don't have a credit card. Are there alternative payment options?

We accept Paypal and MoneyBookers, both services allow (indirect) payments through bank transfers.

Moneybookers is accepted in almost all countries.


Do you offer a multi-domain license?

All extensions have an unlimited domain license. You can use them in all your web sites.


I'm getting this error message "Is not possible to create data structure.". What's happening?

Please, change the "Links relative to" setting in the site configuration options (Dreamweaver 8 or later).

If this setting does not solve the problem, then follow these steps:

  1. Restart Dreamweaver
  2. Be sure that you have a local web site defined in Dreamweaver
  3. Open the page where you want to insert the extension(this page must be saved previously into your web site)
  4. Try to insert the extension again


Can I pay using my credit card ?

Yes, Paypal allows you to pay directly using your credit card.

We also accept MoneyBookers (accepts credit cards when uploading funds).


Can I use these extensions with MACs ?

Yes, you can. These extensions are tested in all actual browsers and used from Dreamweaver on both platforms, PC and MAC.


I have downloaded the new program, but cannot seem to access it from the command panel.

Did you restart Dreamweaver after double clicking the MXP file? Please remember to restart Dreamweaver after double clicking the MXP file.


I'm getting this message "Please define your site first.". What I should do?

It's required to define a working site in Dreamweaver because Dreamweaver needs to know where to place the files.

Download here a PDF document with help about defining a site in Dreamweaver.



This extension works with Dreamweaver CS5?

Yes, all our extensions are compatible with the most recent Dreamweaver versions, including Dreamweaver MX, Dreamweaver MX 2004, Dreamweaver 8, Dreamweaver CS3, Dreamweaver CS4 and Dreamweaver CS5.


When I preview my web page after I get this message in my Internet Explorer,"To help protect your security, Internet Explorer has restricted...". What is the problem?

If you are testing your page directly from your local hard disk in IE 7, this message appears:

"To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options."

In IE 7 this message appears when you test a web page that contains a script or Flash item directly form your local hard disk. When you upload your page to an online web server that message does not appear.

The address from a web server must start with http:// or https:// . On the other hand if the address starts with C:\ or file:// then you are testing it from your local hard disk.

Just upload your web page to your web site and you will see that the error disappears.



Note about sales taxes.

No sales tax is charged when you purchase via PayPal. You can order via PayPal with a credit card even if you do not have a PayPal account. PayPal's status as a financial institution exempts PayPal orders from sales tax. CodePeople will be the retailer of record. CodePeople is based in Switzerland and does not have any US sales tax obligations.


I'm getting this error: "TypeError: THE_DOM has no properties" . There is a workaround?

Please follow these steps:
  1. Check if  you have defined a local web site at dreamweaver.
  2. Check if you have saved the page into your local web site.
  3. If you are using Dreamweaver templates, check if your templates allow an "Editable Region" in the <HEAD> section of the HTML code.
  4. Mark the "Use case-sensitive link checking" option in the site settings and recreate your site cache.
  5. After these checks, please restart your Dreamweaver and try again.
If the above actions don’t solve the problem, then probably the reason is a wrong HTML structure in the page that you are trying to use the product, in this case, please check the page’s HTML structure and if you cannot find the problem then contact our support service.


I'm getting the error "Can't update menus. Extension will not be installed". What is the solution?

That's due to a bug in the Adobe Extension Manager that sometimes corrupts the "Menus.xml" file. That file can be found in the following location:

Windows users: C:\Documents and Settings\[UserName]\Application Data\Macromedia\Dreamweaver [version]\Configuration\Menus\menus.xml

Mac users: HD:Users:username:Library: Application Support:Macromedia:Dreamweaver [version]:Configuration:Menus:Menus.xml

To fix this problem close your Dreamweaver and try the following:

  1. Un-install all your extensions and then re-install them one at a time. This will work in most cases.
  2. If the above doesn't work then delete the "Menus.xml" file. After this you will need to disable and enable your extensions in order to get the menu entries again.
  3. If none of the above works then there is more than one file corrupted, the solution in this case will be to completely uninstall Dreamweaver and reinstall it again.


CATEGORYPRODUCTS
  • Dreamweaver Extensions
  • Dreamweaver Templates
  • Services
  • More Extensions & Products
  • Support