CodeIgniter Forums

Full Version: [REQUEST] Form Validation : Requires Field 1 Or Field 2
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi CI Community.

I need your help figuring out my specific need for my Form Validation rules.

I have a form with several fields.
I need to create three fields with RulesĀ as :
(Field 1 AND Field 2 are Required) OR (Field 3 is required)

For the first group with "AND", I will probably use this extension : http://forum.codeigniter.com/thread-2244...#pid143670

However, I'm not sure how to do the "OR" part.

Any ideas ?

Thank you advance,
Kavatah