CodeIgniter Forums

Full Version: $this->validation->set_message fails for radio buttons.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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?