Form Validator
Could you give some samples of valid regular expressions?
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?
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 CC?
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?
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?
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 ?
How can I validate a List/Menu field?
<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?

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?
Moneybookers is accepted in almost all countries.
Do you offer a multi-domain license?
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:
- Restart Dreamweaver
- Be sure that you have a local web site defined in Dreamweaver
- Open the page where you want to insert the extension(this page must be saved previously into your web site)
- Try to insert the extension again
Can I pay using my credit card ?
We also accept MoneyBookers (accepts credit cards when uploading funds).
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?
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 CC?
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.
I'm getting this error: "TypeError: THE_DOM has no properties" . There is a workaround?
- Check if you have defined a local web site at dreamweaver.
- Check if you have saved the page into your local web site.
- If you are using Dreamweaver templates, check if your templates allow an "Editable Region" in the <HEAD> section of the HTML code.
- Mark the "Use case-sensitive link checking" option in the site settings and recreate your site cache.
- After these checks, please restart your Dreamweaver and try again.
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:
- Un-install all your extensions and then re-install them one at a time. This will work in most cases.
- 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.
- 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.