Welcome Guest, Not a member yet? Register   Sign In
Form Validation and the bahaviour when the field id NOT required
#5

[eluser]WanWizard[/eluser]
I don't think this is a bug. Both password and password2 are not required, so it's perfectly fine to leave them blank. Rules only run when there is something to validate.

What you want is required to be conditional based on the value of some other field. For that, you have to extend the form validation library and modify the _execute() method. Or use a callback. There's an example of a 'required_if' callback here.


Messages In This Thread
Form Validation and the bahaviour when the field id NOT required - by El Forum - 07-16-2010, 03:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB