Re: how do I validate *only if value is present*

2007-11-28 Thread francky06l
add 'allowEmpty' => true On Nov 28, 6:52 pm, Luke <[EMAIL PROTECTED]> wrote: > I have a model called Orders that I need to validate. In this model, > there is a "fax number" that is not required, but if submitted must be > in the format of a phone number. I cannot seem to figure out how to do > s

how do I validate *only if value is present*

2007-11-28 Thread Luke
I have a model called Orders that I need to validate. In this model, there is a "fax number" that is not required, but if submitted must be in the format of a phone number. I cannot seem to figure out how to do something like this in cake. It seems to me that it should be something as easy as var