Welcome Guest, Not a member yet? Register   Sign In
validation callback rules and dynamic text in the error mesage
#3

[eluser]Cro_Crx[/eluser]
Hey dean

The callback functions only take one parameter which is the name of the input variable your validating. So in your example $activity should work fine but $time_spent will be assigned to null. To get around this you can access the time_spent variable by using the input value
Code:
$this->input->post('time_spent')
or similar.

I'm assuming that in the example the callback is being called by the activity input. If it's being called by time spent then you need to specify the activity with
Code:
$this->input->post('activity')
instead!


Messages In This Thread
validation callback rules and dynamic text in the error mesage - by El Forum - 05-10-2009, 07:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB