Look at setting 'required' and 'allowEmpty' in the validation rules...
http://book.cakephp.org/view/127/One-Rule-Per-Field

On Thu, Aug 5, 2010 at 12:19 PM, DerBjörn <[email protected]> wrote:
> Hi,
>
> how do i validate a field in the way of either... or p.e. a field can
> be left blank, BUT IF it has a value i want it to be "numeric". Is
> this possible, is there a workaround or doesn't has it sense at
> all? ;)
>
> Thanks
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to [email protected]
> 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
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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