/silverstripe-fmfieldvalidator

A variant of FMValidator that stores rules/messages on the form field instead of the validator itself

Primary LanguagePHP

SilverStripe FMFieldValidator

Maintainer Contacts

Requirements

  • SilverStripe 2.4+

Documentation

GitHub Wiki

Installation Instructions

  1. Place the files in a directory called fmvalidator in the root of your SilverStripe installation
  2. Visit yoursite.com/dev/build to rebuild the database

Overview

FMFieldValidator is a custom validator for SilverStripe designed to work with the jquery.validate plugin. It also features an extensible validation rule system, project-wide defaults and other bits and pieces.

This is a variant of FMValidator that uses a FormField extension to store rules and messages instead of setting them in the validator itself

NOTE: This uses the same ValidationMethod classes FMValidator uses, so you'll have to delete one set if you install both modules in the same project for some reason.

Known Issues

Issue Tracker