Wednesday, March 25, 2009

Validating based on different fields

I am trying to find a way to validate certain fields based on whether
not another field is filled/ selected.

I have a drop down that depending on which item is selected will
expose other form fields. I need to validate the fields that are
exposed for the selected item, and not the others.

Does that make sense?

I dont know if I can do some conditional statements in the model to
test for which item is selected.

Any help would be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: