Form validation doesn't work with arrays |
[eluser]RS71[/eluser]
If I'm not mistaken this thread talks about it as well: http://ellislab.com/forums/viewthread/109826/ Lets say I has these fields: Code: <input type="checkbox" value="1" name="purpose[]" /> I've set two rules for purpose[] - one is the required rule, the other is a custom callback that checks that the value is present in a array of possible values. If I edit the name of the field to: Code: <input type="checkbox" value="1" name="purpose[abc]" /> or even change the value to "", the validation passes. It ignores the required rule and my custom callback. Some mention changing the $cycles variable in the _execute function of the form validation library but I'd like to see a formal bug fix if possible. Thanks |
Welcome Guest, Not a member yet? Register Sign In |