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

Form Validator

Questions
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 Macromedia Extension Manager: http://www.adobe.com/exchange/em_download/


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

The download link is sent by mail and you will be redirected to a download page. If you have not received the email, please check your 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 CS4?

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


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.


CATEGORYPRODUCTS
  • Dreamweaver Extensions
  • Services
  • More Extensions & Products
  • Support
  • Email:

    Password: