give validation to cck fields
smuthu01 - March 20, 2009 - 11:39
| Project: | Validation API |
| Version: | 6.x-1.0 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
I want give validation to cck fields...for ex I create text filed using cck but i want to give email validation...any explain how give validation in cck fields...
Regrds,
Muthu.

#1
Make sure 'Add a validator link...' is enabled (admin/build/validation_api/settings)
Also, make sure your user can administer validators (admin/user/permissions)
Go to the page where the cck field is displayed, then click on the link directly below it (Add a validator to *)
Then just follow the two-step process to set-up the validation and field relationship.
This works for any field that is created with Drupal's FAPI (independent of module).