CodeIgniter Forums
$this->validation->set_message fails for radio buttons. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter Archived (from EllisLab) (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: $this->validation->set_message fails for radio buttons. (/thread-11223.html)



$this->validation->set_message fails for radio buttons. - El Forum - 08-30-2008

[eluser]Kenzie[/eluser]
I've set a radio group as required in the validation rules, and set a custom error message for required:
Code:
$this->validation->set_message('required', 'Required!');

The custom error message is shown for all input fields, but the radio error remains the default: "The ... field must have a value".

Why isn't it using the defined "required" error message?