CCK - Validation

Events happening in the community are now at Drupal community events on www.drupal.org.
ajajmal006's picture

Hi,
I am using Drupal 6. I need to do validation for the cck form could anyone help me to do this.

Thanks

Comments

hook_form_alter() + #validate callback

markus_petrux's picture

Try implementing a hook_form_alter() in your custom module, and here append a #validate callback to the form.

You could also implement hook_nodeapi() for $op == 'validate'.

See api.drupal.org for more information on Forms API and other Drupal hooks.

Thanks

ajajmal006's picture

Hi markus,
Thankyou very much i will try it and update you ...

validation in drupal form field

rathodlakha's picture

Hi

       i am using drupal 6.x. i want to give validation of the cck field of content type how can i give it? i see CCK Validation but in this i don't have module for 6.x it provide only 5.x so help me to i do validation of cck field. i want to give validation in pre-processes means when user enter perticular value that time only give message in right side in red colour so please help me to do that

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: