[eluser]stef25[/eluser]
i have a checkbox that needs be checked to "agree with terms and conditions" that im trying to validate. i set my rule:
Code:
$rules['chk_approval'] = "required";
then i have a message:
Code:
$this->validation->set_message('required', 'This field is required: ');
on blank text fields i get 'this field is required' showing up, but on the checkbox i get ' The Agree to terms and conditions field must have a value. ' I guess this is some kind of default message that shows, but why do i not get the message I configged? 'must have a value' isnt really proper feedback in this case.
do i have an error in my code somewhere or is this standard for validation of a checkbox? its NOT taking the error message I set at all. Anyone know why?