I'm a fan of custom validation for these scenarios, and it is easier
than you may think.

    Validating Optional Fields in CakePHP – The dreaded OR scenario;
http://edwardawebb.com/programming/php-programming/cakephp/validating-optional-fields-cakephp-dreaded-scenario

Regards,
Eddie

On Sep 15, 6:03 pm, PD <pd1...@gmail.com> wrote:
> I am developing a backup plan module for my application, where use can
> specify multiple items to be backed up. To save a backup plan, at
> least one item should be specified by the user. How can I add this
> requirement to my model validation.
>
> I am using the select->multiple checkbox to get the user input.
> data[BackupPlan] => name, description
> data[BackupPlan][BackupItem] => id1, id2, id3
>
> Thank you.
--~--~---------~--~----~------------~-------~--~----~
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