[development] Form Textfield numeric

Damian Adriel Perez Valdes damian.adriel at gmail.com
Thu Mar 10 16:46:46 UTC 2011


I need your help. I'm making a Drupal module, and i need to validate if the
textfield data are numeric or not. can i use a drupal functions for this ?

This is my form code:

            'ci' => array (
                '#title' => t('C.I.'),
                '#type' => 'textfield',
                '#maxlength' => 11,
                '#size' => 20,
                '#required' => TRUE,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110310/9ff370b2/attachment-0001.html 

More information about the development mailing list