Welcome Guest, Not a member yet? Register   Sign In
Callback when using form_validation.php $config array
#7

[eluser]Ickes[/eluser]
Thanks for the help Ivan. #1 is closest to what my original file looks like. For the sake of brevity, I did not include the entire $config code with all the arrays used to check each field.

[quote author="Iván Argulo" date="1247619111"]Maybe it's not the point, but #1 works, #2 doesn't work

#1
Code:
$config = array(
    array(
        'field' => 'choice',
        'label' => 'Dropdown Choice',
        'rules' => 'required|is_natural_no_zero'
    )                
);
[/quote]

I have been able to get it to process that part no problem. The problem is when I add a callback using a custom function.

Can anyone help me understand why my custom function will not run when I include it as a rule? If I am not being clear, please let me know and I will try again.

Thanks.


Messages In This Thread
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:17 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:23 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:33 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:39 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:51 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:56 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 01:56 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 02:13 PM
Callback when using form_validation.php $config array - by El Forum - 07-14-2009, 02:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB