[eluser]sherbo[/eluser]
Hello,
I have the following validation flow for a "I agree to terms & conditions" form checkbox:
Code:
$rules['agreement_confirm'] = "trim|required|xss_clean";
$this->validation->set_rules($rules);
$this->validation->set_message('agreement_confirm', 'YOU MUST AGREE TO THE TERMS AND CONDITIONS.');
I keep getting the default 'The agreement_confirm field is required' required rule error message.
I want to display 'YOU MUST AGREE TO THE TERMS AND CONDITIONS.' instead of the default required rule error message. It looks like $this->validation->set_message takes in only rules definied in validation_lang.php.
Is it possible to have different custom messages for different 'required' field on the same form?