Validation of listbox, checkbox groups and reselect multiple values using set_select, set_checkbox / Sol: Array to strin |
[eluser]Dan Murfitt[/eluser]
Looking closer, the error message returned for the checkbox array with the 'required' rule was coming from $lang['isset'] rather than $lang['required'] (which the other fields with 'required' were) (see http://codeigniter.com/wiki/Validation/). This means that to change the error message for the checkbox array with the validation fix and 'required' rule you need to use something like: Code: $this->validation->set_message('isset', 'Please select at least one %s'); |
Welcome Guest, Not a member yet? Register Sign In |