Posted by doublejosh on February 14, 2012 at 9:13pm
Last updated by g089h515r806 on Fri, 2012-06-22 02:35
Last updated by g089h515r806 on Fri, 2012-06-22 02:35
Recently needed to add validation to my registration form for profile fields headed into an outside CRM. There are quite a few options out there. Ended up going with FAPI Validation knowing that we'll port the rules to Client-side validation soon. Looking for people's experiences.
.
| Module | D7 | D6 | Client-Side | Description | Experiences |
|---|---|---|---|---|---|
| Richform | 1.0 | 1.0 | Yes | "a framework to easily make client side and server side validation in the same time. It increases the validation features of the Drupal Form API" | n/a |
| FAPI Validation | 1.0 | 1.0 | See below | "drastically increase the validation power of Drupal Form API" | fairly easy to form alter your way to much better server-side validation. you should probably know a little regex. |
| Clientside Validation | 1.25 | 1.24 | Yes | "adds clientside validation (aka 'Ajax form validation') for all forms and webforms using jquery.validate" | can combine with FAPI Validation to match client-side and server side validation, but you have to create custom JS add-on files. |
| Field Validation | 2.0-rc1 | - | No | "adds an extra tab to each field instance, allowing you to specify validation rules... you can also define your own validation rules in your own modules" | n/a |
| Webform Validation | 1.1 | 1.5 | No | "adds an extra tab to each webform node, allowing you to specify validation rules for your webform components" | wonderfully configurable via admin UI! |
| Validation API | - | 1.0 | No | "allows you to create validation rules (either Regular Expressions or PHP code)... admin UI system" | no longer supported |
| Validate | 1.0 | - | Only | "a wrapper for jquery.validate plugin... doesn't provide any UI" | n/a |
| jQuery Valid8 | - | 1.0-rc2 | Only | "simple wrapper module for the jQuery Valid8 plugin" | n/a |
| Validations | - | 0.1-alpha2 | No | "extends Forms API to add validation procedures, which should minimize the use of custom validation functions" | n/a |