One Set of Fields or Another Required |
[eluser]GlenW[/eluser]
[quote author="alexwenzel" date="1349963231"]You can achieve this behaviour by coding your own validation function. http://ellislab.com/codeigniter/user-gui...#callbacks At least this would be the way i would go after a quick thought.[/quote] The problem with the callback functions is that you seem to only be able to pass a single field to it, unless you use an array. Would it be possible that I could set an array, called fields, and run the callback like this: Code: $this->form_validation->set_rules(fields, 'Fields', 'callback_required_fields'); |
Messages In This Thread |
One Set of Fields or Another Required - by El Forum - 10-11-2012, 06:12 AM
One Set of Fields or Another Required - by El Forum - 10-11-2012, 06:47 AM
One Set of Fields or Another Required - by El Forum - 10-11-2012, 07:11 AM
One Set of Fields or Another Required - by El Forum - 10-11-2012, 07:18 AM
One Set of Fields or Another Required - by El Forum - 10-11-2012, 07:44 AM
One Set of Fields or Another Required - by El Forum - 10-11-2012, 08:16 AM
One Set of Fields or Another Required - by El Forum - 10-11-2012, 08:23 AM
One Set of Fields or Another Required - by El Forum - 10-11-2012, 08:42 PM
One Set of Fields or Another Required - by El Forum - 10-12-2012, 04:51 AM
One Set of Fields or Another Required - by El Forum - 10-12-2012, 03:42 PM
One Set of Fields or Another Required - by El Forum - 10-15-2012, 04:54 AM
One Set of Fields or Another Required - by El Forum - 10-15-2012, 04:56 AM
One Set of Fields or Another Required - by El Forum - 10-15-2012, 05:32 AM
|