Uppercase First Letter In The Form !

hi how can i make the first letter in the form upper when i enter a name for exemple :) thx :)

You can use a filter rule if you want to do it server-side:

    public function rules()


        return array(


            array('field_name', 'filter', 'filter'=>'ucfirst'),




Or you could use some javascript to do it client-side. Note that it’s not safe to assume that people’s names follow simple capitalisation patterns though.