Welcome Guest, Not a member yet? Register   Sign In
One Set of Fields or Another Required
#4

[eluser]alexwenzel[/eluser]
In my validation callback i would simply check if some of the other input fields are filled.

Code:
function my_callback_field1($xy) {

if ( ! $this->input->post('field2')) {
// not passed
}

// passed
}

function my_callback_field2($xy) {

if ( ! $this->input->post('field1')) {
// not passed
}

// passed
}

Without knowing if this works, just as an quick idea.


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



Theme © iAndrew 2016 - Forum software by © MyBB