You can setup normal validation for each of OR fields (with allowEmpty
= true) and check validation status for both in beforeSave. Return
false if both are invalid or empty and true in other case.

On Aug 3, 8:25 pm, "rez...@gmail.com" <rez...@gmail.com> wrote:
> hi
> I have a form with three fields and I need to validate it
> I just need if user fill any field the form submit successfully and if
> he doesn't fill any field validation error appears
> I want to make this with model validation but I can't find thing to
> act like OR

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to