I have a form for which the following validation rules don't work.
There are other validation rules that do work including a custom
regular expression which makes me wonder if it is the fact that these
are not text inputs that is the problem.

Any help is greatly appreciated!
Jee

My code is as follows:
================================================================================
 var $validate = array(
  //SELECT form field: Must exist and be two capital letters, eg CA
    'state' => array(
      'alphanumeric' => array(
        'rule' => array('custom', '/[A-Z]{2}$/i'),
        'required' => true
      )
    ),
  //SELECT form field: Must exist and be numeric greater than 0
    'referral_id' => array(
      'referral_id_required' => array(
        'rule' => array('comparison', '>=', 1),
        'required' => true
      )
    ),
  //CHECKBOX form field: Must exist and == true
    'agreed_to_terms' => array(
      'agreed_to_terms_required' => array(
        'rule' => array('comparison', '=', 1),
        'required' => true
      )
    )
  );
============================================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to