Magento form validation

Validation classes I often found my self looking on the net for the right classes to validate forms using the Prototype library that comes with Magento and finally decided to write a small post about the about validations. Using these validations is as easy as using the following classes to the form fields in your forms. ‘validate-no-html-tags’ => ‘HTML tags are not allowed’ ‘validate-select’ => ‘Please select an option.’ ‘required-entry’ => ‘This is a required field.’ ‘validate-number’ => ‘Please enter a valid number in this field.’ ‘validate-number-range’ => ‘The value is not within the specified range.’ ‘validate-digits’ => ‘Please use …

Read moreMagento form validation