Friday, August 9, 2013

Conditional Data Validation

I need to perform conditional data validation but am not sure the best way to go about it.  I have performed more complex validation, like verifying passwords match with a new account registration, but I need to perform validation on fields that are dependent on another field.  For example, if a field is checked (true) then validate some additional fields, but if it is not checked (false) then skip the validation.  Seems pretty simple but I haven't been able to come up with a good solution.  Any help would be greatly appreciated.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate