Welcome Guest, Not a member yet? Register   Sign In
Form validation custom message

Form Library provides set_message() method to set message on validate rule, even run CI native rule or custom created rule, see below example

PHP Code:
# required is rule name
# 2nd param for custom message and "%s" for field name.
$this->form_validation->set_message('required''%s required'); 
Passionate PHP Programmer & Codeigniter Developer :- Always happy to help you!

Messages In This Thread
RE: Form validation custom message - by techbat - 05-15-2015, 12:22 AM

Theme © iAndrew 2016 - Forum software by © MyBB